Indentation Properties

The Indentation Engine determines the formatting of text that is generated or typed in the Source Editor.

To select or configure the Indentation Engine:

  1. Choose Tools Options, expand the Editor Settings node in the Options window, and select the type of Editor for which you wish to set the indentation engine.

  2. Click the Indentation Engine property. Choose an indentation engine (or choose No Indentation) from the pulldown menu, or click the ellipsis (...) button to display the Indentation Engine Property Editor.

    Use the Indentation Engine Property Editor to view and modify the settings for one of the indentation engines. The Simple Indentation Editor has properties for handling tabs. The Java Indentation Editor has the tab properties, plus additional properties to handle spacing and line breaks around braces and parentheses, as follows:

    Add Newline Before Brace If True, automatically puts curly braces on the following line in generated code.
    Add Space Before Parentheses If True, adds a space before the opening parenthesis in generated code.
    Expand Tabs to Spaces If True, inserts spaces (instead of the tab character) when the Tab key is typed. The number of spaces inserted is set in the Number of Spaces per Tab property.
    Number of Spaces per Tab If the Expand Tabs to Spaces property is True, sets the number of spaces indented when you press the Tab key.
You can also set the number of spaces per tab for an imported file using the Tab Size property for the Source Editor type of your choosing (for example, the Tab Size property for the Java Editor).
See also
Java Editor Properties

Legal Notices