Indentation
Tabs and Spaces - Lines are indented using tabs or spaces depending on how the following preferences from
are configured:The Insert Spaces (
editor.insertSpaces
) option controls if the indentation will use space characters or tabs.The Tab Size (
editor.tabSize
) option controls the size of a tab in spaces.
Curly - { (
DVT.textEditor.eLanguage.formatting.indentation.curly
) - Controls the placement of{
:Leave as is (1)
On a new line (2) -
{
is moved on a new lineOn the same line (3) -
{
is moved on the same line with its corresponding construct
Initial code |
Leave as is (1) |
On a new line (2) |
On the same line (3) |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
Do Not Indent Single Line Comments At Beginning Of Line (
DVT.textEditor.eLanguage.formatting.indentation.doNotIndentSingleLineCommentsAtBeginningOfLine
) - Controls whether to indent single line comments starting at the beginning of a line.
Before |
After |
---|---|
![]() |
![]() |
Ignore Lines Starting With (
DVT.textEditor.eLanguage.formatting.indentation.ignoreLinesStartingWith
) - List of line prefixes matching lines that will be ignored while indenting.
Before |
After |
---|---|
![]() |
![]() |