Vertical Alignment
When enabled, this option performs vertical alignment.
Vertical Alignment Tokens (
DVT.textEditor.eLanguage.formatting.verticalAlignment.verticalAlignTokens
)
The lines of code inside the same scope are aligned by the specified comma separated list of vertical alignment tokens.
Vertical alignment is performed left to right, by the same token. For example assuming =
and :
as vertical align tokens:
In order to use the comma character ,
as a vertical alignment token, the character must be preceded by the escaping character \
.
Before |
After (“=” token) |
---|---|
![]() |
![]() |
Only Consecutive Lines (
DVT.textEditor.eLanguage.formatting.verticalAlignment.onlyConsecutiveLines
) - Controls whether vertical alignment is applied only to consecutive lines.
Before |
After |
---|---|
![]() |
![]() |
Vertical Align Single Line Comments (
DVT.textEditor.eLanguage.formatting.verticalAlignment.verticalAlignSingleLineComments
) - Controls whether single line comments are vertically aligned.
Before |
After |
---|---|
![]() |
![]() |