Test Design StudioGo to Previous Topic: Navigation BarGo to Next Topic: Track Changes


Indentation Types

Test Design Studio

provides two advanced options for handling indentation in documents:
Indentation TypeDescription
Block When block indentation is enabled, all new lines are indented to the same level as the line before it. This mode allows you to easily insert multiple lines all at the same indentation level.
Smart Smart indentation is used to enhance the block indentation option. Under most circumstances, smart indent will behave like block indent. New lines are indented at the same level as the previous line. The difference come with supported languages where the indent level is automatically increased or decreased based on the context of what is being entered.

For instance, the C-style language uses curly braces { and } to mark bodies of text for language elements such as loops and conditional statements. It is common practice to indent the body of these types of statements. When you type { and press the Return key while smart indent is enabled, Test Design Studio will automatically increase the indentation level of the next line for the body of the statement. When you complete your statement and type }, the indentation is automatically decreased to match the indent of the opening { level.

Note:    This setting can be changed using Text Editor Language Tab Options.

Indentation Guides

Indentation guides are available to help visually indicate how lines are indented. When indentation guides are enabled, a light vertical line is drawn at every indentation level where text is actually indented.

The three levels of indentation guides shown in the above example illustrate how easily the 'If' keyword can be matched to the corresponding 'Else' and 'End If' keywords.

Note:    This feature can be turned on/off using Text Editor Language Tab Options.