This extension align chars in selection. It helps creating clean, formatted code.
Select text and press Alt+=
(on macOS Option+=
). You can also use context menu commend.
Alt+=
Option+=
Alt+Shift+=
Option+Shift+=
Alt+-
Option+-
This extension contributes the following settings:
alignment.chars
: pairs chars (strings) and their space settingsSpace settings:
spaceBefore
: spaces count before char(s),spaceAfter
: spaces count after char(s),tabsBefore
: tabs count before char(s),tabsAfter
: tabs count after char(s).// Chars to align
"alignment.chars": {
":": {
"spaceBefore": 0,
"spaceAfter": 1
},
"::": {
"spaceBefore": 0,
"spaceAfter": 0
},
"=": {
"spaceBefore": 1,
"spaceAfter": 1
},
"===": {
"spaceBefore": 1,
"spaceAfter": 1
},
"==": {
"spaceBefore": 1,
"spaceAfter": 1
},
"=>": {
"spaceBefore": 1,
"spaceAfter": 1
},
"+=": {
"spaceBefore": 1,
"spaceAfter": 1
},
"-=": {
"spaceBefore": 1,
"spaceAfter": 1
},
"*=": {
"spaceBefore": 1,
"spaceAfter": 1
},
"/=": {
"spaceBefore": 1,
"spaceAfter": 1
}
}