annsk / vscode-alignment

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

Ignore characters inside strings #6

Open martin-sweeny opened 7 years ago

martin-sweeny commented 7 years ago

When trying to align lines with strings containing what would be alignment characters (=, :, by default), the characters in the string get spaces/aligned as well.

Assuming the following snippet:

var a = 1;
var b = "C:\somwhere";

If you use align them:

var a = 1;
var b = "C : \somwhere";

Which obviously breaks the path