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)

../../_images/before-vertical-align-tokens-e.png
../../_images/after-vertical-align-tokens-e.png
  • Only Consecutive Lines (DVT.textEditor.eLanguage.formatting.verticalAlignment.onlyConsecutiveLines) - Controls whether vertical alignment is applied only to consecutive lines.

Before

After

../../_images/before-only-consecutive-lines-e.png
../../_images/after-only-consecutive-lines-e.png
  • Vertical Align Single Line Comments (DVT.textEditor.eLanguage.formatting.verticalAlignment.verticalAlignSingleLineComments) - Controls whether single line comments are vertically aligned.

Before

After

../../_images/before-vertical-align-single-line-comments-e.png
../../_images/after-vertical-align-single-line-comments-e.png