Indentation

  • Then (DVT.textEditor.vHDL.formatting.indentation.then) - Controls the placement of then:
    • Leave as is (1)

    • On a new line (2) - then is moved on a new line

    • On the same line (3) - then is moved on the same line with its construct

Initial code

Leave as is (1)

On a new line (2)

On the same line (3)

../../_images/then-same-line.png
../../_images/then-same-line.png
../../_images/then-new-line.png
../../_images/then-same-line.png
  • Parameters (DVT.textEditor.vHDL.formatting.indentation.parameters) - Controls the placement of port, generic, map, function and procedure elements:
    • Leave as is (1)

    • One per line (open parenthesis on the same line) (2) - Each parameter/argument is placed on its own line and the open parentheses is placed on the same line with the parameter/argument receiver

    • One per line (open parenthesis on the next line) (3) - Each parameter/argument is placed on its own line and the open parentheses is placed on the next line after the parameter/argument receiver

    • Enable More Parameters Per Line If Less Than (DVT.textEditor.vHDL.formatting.indentation.enableMoreParametersPerLineIfLessThan) - It controls whether to place parameters on the same line when their number does not exceed a specified value. This option is available only when 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).

    • More Parameters Per Line If Less Than (DVT.textEditor.vHDL.formatting.indentation.moreParametersPerLineIfLessThan) - Parameters are placed on the same line if their number does not exceed this value.

    • More per line (4) - More parameters are placed on the same line

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.

Initial code & Leave as is (1)

More per line (4)

../../_images/parameters-before.png
../../_images/parameters-more-per-line-vhdl.png

Initial code

One per line (open parenthesis on the next line) (3)

One per line (open parenthesis on the next line) (3) and More per line if less than set to “5”

One per line (open parenthesis on the next line) (3) and More per line if less than set to “1”

../../_images/parameters-before.png
../../_images/parameters-one-per-line-open-parenthesis-on-the-next-line-vhdl.png
../../_images/parameters-open-paren-next-line-more-per-line-if-less-than-within-limit-vhdl.png
../../_images/parameters-one-per-line-open-parenthesis-on-the-next-line-vhdl.png
  • Do Not Indent Single Line Comments At Beginning Of Line (DVT.textEditor.vHDL.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-vhdl.png
../../_images/before-and-after-do-not-indent-single-line-comments-vhdl.png
  • Indent Multi Line Comments (DVT.textEditor.vHDL.formatting.indentation.indentMultiLineComments) - Controls whether to indent multi-line comments.

Before

After

../../_images/before-indent-multiline-comments-vhdl.png
../../_images/after-indent-multiline-comments-vhdl.png
  • Ignore Lines Starting With (DVT.textEditor.vHDL.formatting.indentation.ignoreLinesStartingWith) - List of line prefixes matching lines that will be ignored while indenting.

Before

After

../../_images/before-ignore-lines-starting-with-vhdl.png
../../_images/after-ignore-lines-starting-with-vhdl.png
  • No Indent Keywords (DVT.textEditor.vHDL.formatting.indentation.noIndentKeywords) - Selection of language keywords that will not increase indentation.

Before

After

../../_images/before-no-indent-keywords-vhdl.png
../../_images/after-no-indent-keywords-vhdl.png