annsk / vscode-alignment

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

Adds space after : symbol within string. #22

Open Dan0sz opened 2 years ago

Dan0sz commented 2 years ago

This example considers PHP.

When I have this code:

$variable = $this->do_something();
list($another) = explode(':', $other_stuff);

And I select both lines and press ALT + =, it aligns it as follows:

$variable      = $this->do_something();
list($another) = explode(': ', $other_stuff);

Notice the space after the : symbol. I was lucky to catch it during testing 😅