Contact us Start a Trial

Smart indentation

Sigasi offers Smart Indentation for both VHDL and Verilog. When enabled, the indentation level is automatically adjusted based on the context and the code being written.

When you press enter, Sigasi automatically adjusts the indentation of the current and the new line. Depending on the content of the preceding line, Sigasi will automatically increase or decrease the indentation level. For example, it may add an extra indent after a module or an entity and remove an indent for the matching endmodule or end entity.

See also:

Configuration

To make use of Sigasi’s Smart Indentation, make sure the editor.autoIndent setting is set to full. To further configure the inserted indentation, the following settings can be used:

  • editor.insertSpaces: To insert spaces rather than tabs.
  • editor.indentSize: To configure the size of the indentation.
  • editor.detectIndentation: To dynamically adjust the previous two settings based on the indentation style used in the current file.