DVT e Language IDE User Guide
Rev. 19.1.40, 13 November 2019

13.3 Vertical Alignment

When enabled, this option performs vertical alignment.

  • Vertical Alignment Tokens

The lines of code inside the same scope are aligned by the specified comma separated list of vertical alignment tokens.

if(a) begin       if(a) begin
 x = 1;            x  = 1;   // aligned by '=' inside the if scope
 xx = 1;           xx = 1;
end else begin    end else begin
 xxx = 1;          xxx  = 1; // aligned by '=' inside the else scope, orthogonal to the if scope above
 xxxx = 1;         xxxx = 1;
end               end

Vertical alignment is performed left to right, by the same token. For example assuming '=' and ':' as vertical align tokens:

var x  : int = 1; // "first level :", "second level ="
var xx : int = 1;

a  = 1; // not aligned to "second level =" above, as this is a "first level ="
aa = 1;

In order to use the comma character ',' as a vertical alignment token, the character must be preceded by the escaping character '\'.

  • Only consecutive lines - When enabled, only consecutive lines are vertically aligned. Two lines are consecutive if they follow each other or are separated by comment lines.

  • Vertical align single line comments - When enabled, single line comments are aligned.