Sorts highlighted lines by their length.
- Allows you to sort selected lines by their length.
- Longest to shortest
- Shortest to longest
This extension contributes the following settings:
line-length-sorter.removeBlank: Removes blank lines from selection during sorting. (default:true)
- Select the lines you want to sort.
- Press
Ctrl+Shift+Pto open the command palette. - Type
Sort Lines Longest to ShortestorSort Lines Shortest to Longestand pressEnter.
- Select the lines you want to sort.
- Right click the selection.
- Click
Sort Lines Longest to ShortestorSort Lines Shortest to Longest.
Feel free to open an issue or a pull request. GitHub Repository