Sorting lines in VS Code
- Select the area you want to sort
- Press ⌘-SHIFT-P on a Mac and CTRL-SHIFT-P on Windows to open the command palette
- After the > prompt type sort lines and select one of the two commands Sort Lines Ascending or Sort Lines Descending
Comments