Vertical Alignment

When enabled, this option performs vertical alignment.

  • Vertical Alignment Tokens (DVT.textEditor.vHDL.formatting.verticalAlignment.verticalAlignTokens)

The lines of code inside the same scope are aligned by the specified list of vertical alignment tokens. Vertical alignment is performed left to right, by the same token. For example, assuming = and : as vertical alignment tokens: In order to use the comma character , as a vertical alignment token, the character must be preceded by the escaping character \.

Before

After (“:=,:” tokens)

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

Before

After

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

Before

After

../../_images/before-vertical-align-single-line-comments.png
../../_images/after-vertical-align-single-line-comments.png
  • Vertical Align To Open Parenthesis (DVT.textEditor.vHDL.formatting.verticalAlignment.verticalAlignToOpenParenthesis) - Controls whether to vertically align relative to open parenthesis.

Before

After

../../_images/before-vertical-align-to-open-parenthesis.png
../../_images/after-vertical-align-to-open-parenthesis.png

Vertical Align Patterns (DVT.textEditor.vHDL.formatting.verticalAlignment.verticalAlignPatterns)

  • Constant Declarations (VhdlConstantDeclarations) - Controls whether to align constant declarations.

Before

After

../../_images/before-vertical-align-constant-declaration-vhdl.png
../../_images/after-vertical-align-constant-declaration-vhdl.png
  • Port Declarations (VhdlPortDeclarations) - Controls whether to align port declarations.

Before

After

../../_images/before-vertical-align-port-declaration-vhdl.png
../../_images/after-vertical-align-port-declaration-vhdl.png
  • Record Declarations (VhdlRecordDeclarations) - Controls whether to align record declarations.

Before

After

../../_images/before-vertical-align-record-declaration-vhdl.png
../../_images/after-vertical-align-record-declaration-vhdl.png
  • Signal Declarations (VhdlSignalDeclarations) - Controls whether to align signal declarations.

Before

After

../../_images/before-vertical-align-signal-declaration-vhdl.png
../../_images/after-vertical-align-signal-declaration-vhdl.png
  • Variable Declarations (VhdlVariableDeclarations) - Controls whether to align variable declarations.

Before

After

../../_images/before-vertical-align-variable-declaration-vhdl.png
../../_images/after-vertical-align-variable-declaration-vhdl.png
  • Variable, Signal, Constant Declarations (VhdlVariableSignalConstantDeclarations) - Controls whether to align variable, signal and constant declarations.

Before

After

../../_images/before-vertical-align-variable-signal-constant-declaration-vhdl.png
../../_images/after-vertical-align-variable-signal-constant-declaration-vhdl.png