You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when the cursor is at the start of the third line (foo), I select the 2 lines using either Shift+Down twice or Ctrl+L twice, then sort using this extension, the empty line after the 2 lines is also sorted.
while I expected only the middle 2 lines to swap places.
A \n is usually considered a line terminator rather than separator, and VSCode knows this so it sees my selection as 2 lines and not 3. The current solution seems to be only to finish off the selection with Left to unselect the newline at the end before running the sort commands.
I suggest adding a boolean setting for it assuming the current behavior is to be preserved.
The text was updated successfully, but these errors were encountered:
Given a file such as this:
when the cursor is at the start of the third line (
foo
), I select the 2 lines using either Shift+Down twice or Ctrl+L twice, then sort using this extension, the empty line after the 2 lines is also sorted.The final result is
while I expected only the middle 2 lines to swap places.
A
\n
is usually considered a line terminator rather than separator, and VSCode knows this so it sees my selection as 2 lines and not 3. The current solution seems to be only to finish off the selection with Left to unselect the newline at the end before running the sort commands.I suggest adding a boolean setting for it assuming the current behavior is to be preserved.
The text was updated successfully, but these errors were encountered: