annsk / vscode-alignment

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

Only affect the first occurrence of an alignment char in a line #7

Closed martin-sweeny closed 8 years ago

martin-sweeny commented 8 years ago

When aligning lines such as the following with spaceBefore and spaceAfter set:

var something = 1;
var b = ( something === 1 ? true : false);

You would expect only the = after something and b to be aligned. But also, spaces may get added to all = on a line, like so:

var something = 1;
var b = ( something = = = 1 ? true : false);
annsk commented 8 years ago

Corrected by extension default configuration. Also I added Align to first char commend.

Resolved in v0.3.0