Optional "begin" (ro.amiq.vlogdt/format.indent.begin) - Some language constructs, for example the conditional statement
if or the loop statement
for, require a
begin - end block to control the execution of several statements. Such blocks are called
optional "begin" in order to distinguish them from other cases like
fork begin ... end endfork' or plain
begin ... end blocks used just for grouping several statements together for readability. This option affects the
optional "begin" blocks:
Leave as is (1)
On a new line (2)-
begin is moved on a new line
On the same line (3)-
begin is moved on the same line with its construct
On a new line and indent (4) -
begin is moved on a new line and indented
Note: When more parameters get to be placed on a single line and line wrapping is enabled, the parameters may be moved to separate lines as needed to fit within the specified line width.
Don't indent single line comments at first column (ro.amiq.vlogdt/format.indent.preserve_sl_comment_column_zero) - This option affects single line comments that start at column zero. It is useful to disable the indentation for whole regions of code that are
block commented, for example by using
Ctrl + /. When enabled, single line comments that start at column zero are not indented.
Do not indent multi-line macro definitions (ro.amiq.vlogdt/format.indent.skip.ml.macro.definitions) - When enabled, multi-line macro definitions are not indented such as to preserve an alignment. This option is available only when the
Preprocessing preference is set to
Indent,
Indent and increase indentation level,
Indent and increase indentation level except first or
Move at first column.
Ignore lines starting with (ro.amiq.vlogdt/format.indent.ignore_lines) - Space separated list of line prefixes. A line starting with one of the prefixes is completely ignored, that is it is not indented, nor it contributes to indentation.
Implicit semi macros (ro.amiq.vlogdt/format.indent.implicit_semi_macros) - The code formatting engine depends on detecting some delimiters for properly identifying the proper indentation scope, for example indentation should not increase after
if(a) foo1();, but it should after
if(a) begin foo();. Semicolon or
end is such a delimiter and sometimes it may be encapsulated inside a macro. This option allows you to explicitly list such macros for proper code formatting.
Open scope macros (ro.amiq.vlogdt/format.indent.open_scope_macros) and
Close scope macros (/ro.amiq.vlogdt/format.indent.close_scope_macros) - An
open scope macro increases the indentation level of subsequent code to visualize scoping. A
close scope macro decreases back the indentation level. Open/close scope macros are paired, for example:
`TEST and
`ENDTEST, similar with language keywords like
function and
endfunction.
|