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:
  1. On the main menu, select
    Tools > Options
    to open the
    Workstation Options
    dialog box.
  2. In the
    Categories
    pane, select
    Structured Text Editor
    .
  3. Under
    Indentation
    , select an indentation mode:
    • None
      turns off automatic indentation. When pressing
      Enter
      , the cursor is placed at the far left of the new line, with no indentation.
    • Block
      sets the indentation for the new line to the same indent as the preceding line.
    • Smart
      enables indentation based on keywords such as
      if
      ,
      end_if
      ,
      else
      ,
      repeat
      , and
      until
      . When pressing
      Enter
      for a new line following a keyword, the new line is indented or outdented one tab more than the preceding line. When pressing
      Enter
      at the end of a line that does not contain a keyword, the indent matches the indent for the preceding line.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.