yo1dog / vscode-cursor-align

Visual Studio Code Extension that aligns all cursors using spaces.
MIT License
22 stars 7 forks source link

Aligns incorrectly when the number of tabs varies between lines #13

Open staplerfahrer opened 1 month ago

staplerfahrer commented 1 month ago

To reproduce, create two lines: one without tabs in front of it, one with tabs:

abc x (tab)abc x

now select the x-es, and ctrl+a

they will not align. It's like the plugin doesn't know or care about the width of a tab.

adrianstephens commented 1 week ago

I've also been experiencing this problem and made a fix. I tried creating a PR, but I got a permission error. Probably my fault because I am hopeless with git. But I see a PR languishing from 4 years ago, so wanted to see if you are open to them? Meanwhile, if anyone would like to try my fix, unzip the attached file and overwrite the extension.js at %USERPROFILE%.vscode\extensions\yo1dog.cursor-align-1.1.2 extension.zip