The Indentation Engine determines the formatting of text that is generated or typed in the Source Editor.
To set Indentation Engine properties, choose Tools
Options. Then expand
Editing
Indentation
Engines and select an indentation engine type.
Each editor type contains an Indentation Engine property that determines which indentation engine is used for that editor. You can also access the indentation engine properties by clicking the ellipsis (...) button on the Indentation Engine property for an editor type.
The Simple Indentation Editor has properties for handling tabs. The Java Indentation Editor has additional properties to handle Java code. The first three properties below are available only for the Java Indentation Engine.
If False, typing the Tab key inserts the tab character (\t) into the file if possible. It also replaces preceding spaces with the tab character if possible. The Source Editor calculates where to place tab characters based on the value of the Tab Size property. The Tab Size property is found in the main properties of the Source Editor, not in the Indentation Engine settings.
If Expand Tabs to Spaces is False and the Number of Spaces per Tab is different than the Tab Size property, the indentation created by typing the Tab key is made up of a combination of spaces and tab characters. It is easiest to predict the location of tab characters if you set Number of Spaces per Tab to an even multiple or divisor of Tab Size.
![]() |
If the previous non-blank line is indented, the first press of the Tab key on a new line positions the insertion point to the previous indentation, regardless of the Number of Spaces per Tab setting. |
See also | |
---|---|
Source Editor Properties
Working With Tabs |