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+P
to open the command palette. - Type
Sort Lines Longest to Shortest
orSort Lines Shortest to Longest
and pressEnter
.
- Select the lines you want to sort.
- Right click the selection.
- Click
Sort Lines Longest to Shortest
orSort Lines Shortest to Longest
.
Feel free to open an issue or a pull request. GitHub Repository