DVT IDE for VS Code SystemVerilog User Guide
Rev. 24.1.12, 12 June 2024

20.3 Vertical Alignment

When enabled, this option performs vertical alignment.

  • Vertical Alignment Tokens (DVT.textEditor.systemVerilog.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 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.systemVerilog.formatting.verticalAlignment.onlyConsecutiveLines) - Controls whether vertical alignment is applied only to consecutive lines.

Before After
  • Vertical Align Single Line Comments (DVT.textEditor.systemVerilog.formatting.verticalAlignment.verticalAlignSingleLineComments) - Controls whether single line comments are vertically aligned.

Before After
  • Vertical Align To Open Parenthesis (DVT.textEditor.systemVerilog.formatting.verticalAlignment.verticalAlignToOpenParenthesis) - Controls whether to vertically align relative to open parenthesis.

Before After
  • Vertical Align To Open Curly (DVT.textEditor.systemVerilog.formatting.verticalAlignment.verticalAlignToOpenCurly) - Controls whether to vertically align relative to open curly.

Before After
  • Independent Preprocessing Scopes (DVT.textEditor.systemVerilog.formatting.verticalAlignment.independentPreprocessingScopes) - Controls whether preprocessing scopes create independent alignment scopes.

Before After
  • Vertical Align Patterns (DVT.textEditor.systemVerilog.formatting.verticalAlignment.verticalAlignPatterns) :

By Name Port Connections (VlogByNamePortConnections) - When enabled, this pattern aligns instance port connections by name:

Before After

Class Declarations (VlogClassDeclarationsGroupDimensions) - When enabled, this pattern aligns class parameters while excluding vertical alignment of dimensions:

Before After

Class Declarations (split dimensions) (VlogClassDeclarations) - When enabled, this pattern aligns class parameters while vertically aligning dimensions:

Before After

Class Variable Declarations (VlogClassVariableDeclarationsGroupDimensions) - When enabled, this pattern aligns class variable while excluding vertical alignment of dimensions:

Before After

Class Variable Declarations (split dimensions) (VlogClassVariableDeclarations) - When enabled, this pattern aligns class variables while vertically aligning dimensions:

Before After

`defines (VlogDefines) - When enabled, this pattern aligns `defines:

Before After

Function Declarations (VlogFunctionDeclarationsGroupDimensions) - When enabled, this pattern aligns function and task declarations while excluding vertical alignment of dimensions:

Before After

Function Declarations (split dimensions) (VlogFunctionDeclarations) - When enabled, this pattern aligns function and task declarations while vertically aligning dimensions:

Before After

Function Variable Declarations (VlogFunctionVariableDeclarationsGroupDimensions) - When enabled, this pattern aligns function and task while excluding vertical alignment of dimensions:

Before After

Function Variable Declarations (split dimensions) (VlogFunctionVariableDeclarations) - When enabled, this pattern aligns function and task while vertically aligning dimensions:

Before After

Interface Port Declarations (VlogInterfacePortDeclarationsGroupDimensions) - When enabled, this pattern aligns interface ports while excluding vertical alignment of dimensions:

Before After

Interface Port Declarations (split dimensions) (VlogInterfacePortDeclarations) - When enabled, this pattern aligns interface ports while vertically aligning dimensions:

Before After

Interface Signal Declarations (VlogInterfaceSignalDeclarationsGroupDimensions) - When enabled, this pattern aligns interface signals while excluding vertical alignment of dimensions:

Before After

Interface Signal Declarations (split dimensions) (VlogInterfaceSignalDeclarations) - When enabled, this pattern aligns interface signals while vertically aligning dimensionss:

Before After

Module Port Declarations (VlogModulePortDeclarationsGroupDimensions) - When enabled, this pattern aligns module ports while excluding vertical alignment of dimensions:

Before After

Module Port Declarations (split dimensions) (VlogModulePortDeclarations) - When enabled, this pattern aligns module ports while vertically aligning dimensions:

Before After

Module Signal Declarations (VlogModuleSignalDeclarationsGroupDimensions) - When enabled, this pattern aligns module signals while excluding vertical alignment of dimensions:

Before After

Module Signal Declarations (split dimensions) (VlogModuleSignalDeclarations) - When enabled, this pattern aligns module signals while vertically aligning dimensions:

Before After

`xvm_field macros (VlogXVMFieldMacros) - When enabled, this pattern aligns `xvm_field factory registration macros:

Before After
  • Compact Whitespace For Vertical Align Patterns (DVT.textEditor.systemVerilog.formatting.verticalAlignment.compactWhitespaceForVerticalAlignPatterns) - Controls whether consecutive whitespace characters are trimmed to a single space character for vertical align patterns.

Before After