Preferences Keys
Formatting preferences are serialized as key-value pairs, by default under $HOME/.config/Code/User/settings.json.
Furthermore, an input file with the same format is used to configure Verissimo formatting rules, such as SVTB1.0.
Preference Name |
Details |
Preference Key |
Default Value |
---|---|---|---|
Whitespace |
|||
Add Whitespace After |
List of tokens after which whitespace will be added. |
|
[] |
Add Whitespace Before |
List of tokens before which whitespace will be added. |
|
[] |
Compact Whitespace Groups |
Controls whether to compact consecutive whitespace characters. |
|
false |
Compact Consecutive Empty Lines |
Controls whether to compact consecutive empty lines. |
|
false |
Maximum Number Of Consecutive Empty Lines |
Maximum number of consecutive empty lines that can appear in a file. |
|
1 |
Insert spaces |
When enabled, indentation will use space characters, otherwise tabs will be used. |
|
true |
Remove New Line After |
List of tokens after which new lines will be removed. |
|
[] |
Remove New Line Before |
List of tokens before which new lines will be removed. |
|
[] |
Tab width |
Controls the size of a tab in spaces. |
|
4 |
Trim End of Line Whitespace |
Controls whether to trim end of line whitespaces. |
|
true |
Trim Whitespace Lines |
Controls whether to trim lines containing only whitespaces. |
|
true |
Indentation |
|||
Add New Line After Begin And Before End |
Controls whether to add a new line after |
|
false |
Add New Line After End |
Controls whether to add a new line after |
|
false |
Close Scope Macros |
List of macros that close a scope and decrease the indentation of subsequent code. |
|
[] |
Do Not Indent Single Line Comments At Beginning Of Line |
Controls whether to indent single line comments starting at the beginning of a line. |
|
true |
Do Not Indent Multi-line Macro Definitions |
Controls whether to indent multi-line macro definitions. 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. |
|
false |
Else |
Controls the placement of |
|
“Leave as is” |
Enable More Parameters Per Line If Less Than |
Controls whether to place parameters on the same line when their number does not exceed a certain value and the Parameters preference is set to One per line (open parenthesis on the same line) or One per line (open parenthesis on the next line). |
|
false |
Ignore Lines Starting With |
List of line prefixes matching lines that will be ignored while indenting. |
|
[] |
Implicit Semi Macros |
List of macros encapsulating semicolon or end delimiters. |
|
|
Indent Multi-line Assigns |
Controls whether to indent multi-line assigns. |
|
true |
Indent Multi Line Comments |
Controls whether to indent multi-line comments. |
|
true |
More Parameters Per Line If Less Than |
Maximum number of parameters that can appear on a line when Enable More Parameters Per Line If Less Than is enabled. |
|
5 |
No Indent Keywords |
Selection of language keywords that will not increase indentation. |
|
|
Open Scope Macros |
List of macros that open a scope and increase the indentation of subsequent code. |
|
[] |
Optional Begin |
Controls the placement of optional |
|
“Leave as is” |
Parameters |
Controls the placement of module ports and parameters, function and task arguments, class parameters: Leave as is, One per line (open parenthesis on the same line), One per line (open parenthesis on the next line), More per line. |
|
“Leave as is” |
Preprocessing |
Controls the indentation of preprocessing blocks: Leave as is, Indent, Indent and increase indentation level, Indent and increase indentation level except first, Move at first column. |
|
“Leave as is” |
Vertical Alignment |
|||
Compact Whitespace For Vertical Align Patterns |
Controls whether consecutive whitespace characters are trimmed to a single space character for vertical align patterns. |
|
false |
Enable Vertical Align |
Controls whether to enable vertical alignment. |
|
false |
Independent Preprocessing Scopes |
Controls whether preprocessing scopes create independent alignment scopes. |
|
false |
Only Consecutive Lines |
Controls whether vertical alignment is applied only to consecutive lines. |
|
false |
Vertical Align Patterns |
Selection of additional code patterns for which vertical alignment is enabled: By Name Port Connections, Class Declarations, Class Declarations (split dimensions), Class Variable Declarations, Class Variable Declarations (split dimensions), `defines, Function Declarations, Function Declarations (split dimensions), Function Variable Declarations, Function Variable Declarations (split dimensions), Interface Port Declarations, Interface Port Declarations (split dimensions), Interface Signal Declarations, Interface Signal Declarations (split dimensions), Module Port Declarations, Module Port Declarations (split dimensions), Module Signal Declarations, Module Signal Declarations (split dimensions), `xvm_field macros. |
|
|
Vertical Align Single Line Comments |
Controls whether single line comments are vertically aligned. |
|
false |
Vertical Align To Open Curly |
Controls whether to vertically align relative to open curly. |
|
false |
Vertical Align To Open Parenthesis |
Controls whether to vertically align relative to open parenthesis. |
|
false |
Vertical Alignment Tokens |
List of tokens used for splitting lines in the same scope in vertically aligned columns. |
|
|
Line Wrapping |
|||
Enable Line Wrapping |
Controls whether to enable line wrapping. |
|
false |
Line Width |
Number of characters on a line after wrapping the line. |
|
80 |
Wrap Multi Line Comments |
Controls whether multi-line comments are wrapped. |
|
false |
Wrap Single Line Comments |
Controls whether single line comments are wrapped and moved above the code. |
|
false |