Sort lines of text in Visual Studio Code. The following types of sorting are supported:
Sort lines- Regular character code based sort (F9)
Sort lines (case insensitive)- Case insensitive sort
Sort lines (line length)- Sort lines by line length
Sort lines (reverse)- Reverse character code based sort
Sort lines (unique)- Regular character code keeping only unique items
Sort lines (shuffle)- Shuffles the lines randomly
- Open VS Code
- Press F1
- Type "install"
- Select "Extensions: Install Extension".
- Select sort-lines from the list
Select the lines to sort, press F1 type sort and select the desired sort. The regular sort has the default hotkey F9.