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.
- Windows/Linux:
Alt+=
- macOS:
Option+=
- Windows/Linux:
Alt+Shift+=
- macOS:
Option+Shift+=
- Windows/Linux:
Alt+-
- macOS:
Option+-
This extension contributes the following settings:
alignment.chars
: pairs chars (strings) and their space settings
Space 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
}
}
- Aligning whitespace.
- Align to fist command
- Extend defaults aligment chars list.
- Ommit last line of selection if empty.
- Tabs spacing
- Changed category to Formatters.
- Add context menu option.
- Describe shortcuts in README
- Fixed alignment to 2 chars string.
- Alignment many chars in line to table.