Credit to
https://github.com/Tyriar/vscode-sort-lineswhich this is based upon.
Provides common line utils useful for development.
Sort lines of text in Visual Studio Code. The following types of sorting are supported:
| Command | Title | Comments |
|---|---|---|
lineUtils.sortLines |
Sort code lines (locale: en) | Keybound to F9 |
| Name | Description | Default |
|---|---|---|
lineUtils.filterBlankLines |
(boolean) Filter out blank (empty or whitespace-only) lines. | false |
lineUtils.sortEntireFile |
(boolean) Sort entire file if no selection is active. | false |
Select the lines to sort, press F9 to sort (or select the command through the command palette).