Indentation

  • Tabs and Spaces - Lines are indented using tabs or spaces depending on how the following preferences from File ‣ Preferences ‣ Settings ‣ Text Editor ‣ Editor 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 line

    • On 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)

../../_images/curly-same-line.png
../../_images/curly-same-line.png
../../_images/curly-new-line.png
../../_images/curly-same-line.png
  • 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

../../_images/before-and-after-do-not-indent-single-line-comments-e.png
../../_images/before-and-after-do-not-indent-single-line-comments-e.png
  • Ignore Lines Starting With (DVT.textEditor.eLanguage.formatting.indentation.ignoreLinesStartingWith) - List of line prefixes matching lines that will be ignored while indenting.

Before

After

../../_images/before-ignore-lines-starting-with-e.png
../../_images/after-ignore-lines-starting-with-e.png