Configure indentation mode
The indentation mode in the Structured Text editor determines how much a new line is indented when pressing
Enter
.To configure the indentation mode:
- On the main menu, selectTools > Optionsto open theWorkstation Optionsdialog box.
- In theCategoriespane, selectStructured Text Editor.
- UnderIndentation, select an indentation mode:
- Noneturns off automatic indentation. When pressingEnter, the cursor is placed at the far left of the new line, with no indentation.
- Blocksets the indentation for the new line to the same indent as the preceding line.
- Smartenables indentation based on keywords such asif,end_if,else,repeat, anduntil. When pressingEnterfor a new line following a keyword, the new line is indented or outdented one tab more than the preceding line. When pressingEnterat the end of a line that does not contain a keyword, the indent matches the indent for the preceding line.
Provide Feedback