Tyriar / vscode-sort-lines

Visual Studio Code extension to sort lines of text
https://marketplace.visualstudio.com/items/Tyriar.sort-lines
MIT License
147 stars 42 forks source link

Ability to ignore unselected last line #124

Closed gdlx closed 1 year ago

gdlx commented 1 year ago

This adds an option to ignore unselected last line. This way we can select the lines to sort by the line numbers, which places the cursor at the beginning of the line following the selection, which was sorted without this option.

I personally think it should be the default behavior and no parameter is necessary but I didn't want to cause a breaking change if some users are used to the current behavior.

Fixes #118

Here is a gif showing the different behaviors: sortlines2