annsk / vscode-alignment

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

Aling to , support #2

Closed sirsimon closed 7 years ago

sirsimon commented 7 years ago
array('FirstElem', 123, true);
array('SecondElem', 2, false);

align to:

array('FirstElem',  123, true);
array('SecondElem', 2,   false);
martin-sweeny commented 7 years ago

Adding

        "," : {
            "spaceAfter" : 1,
            "spaceBefore" : 0
        }

to your alignment.chars settings can allow you to achieve the following with the example code:

array('FirstElem' , 123, true);
array('SecondElem', 2  , false);

Not the same, but maybe a bit better than nothing?

annsk commented 7 years ago

I've added Align whitespace command.

Included in v0.3.0.