annsk / vscode-alignment

Align chars in selection.
MIT License
13 stars 6 forks source link

Align does not work with all selected lines #9

Open danechitoaie opened 7 years ago

danechitoaie commented 7 years ago

If I select 3 lines only 2 of them will get aligned. I need to select 4 lines to be able to align the previous 3.

untitled

isutton commented 7 years ago

If you put the cursor in the end of last line you selected, then indentation happens as you want. Probably the easiest fix there is to go one character back if the end of the selection is the first character of the line.

lumpysimon commented 7 years ago

I've noticed this as well. Would be great if it aligned without needing to select the following line too.