Auto-completion of Words

The ST / IL editor includes commands for automatic completion of typed words according to declared variables and data types.

Press Ctrl + Space or Ctrl + J to activate auto-completion.

  • If you use auto-complete and there is no match for a variable name in the Dictionary, press ENTER to open the variable creation dialog box.
  • Use the dialog box to define a new variable.

These features are available:

Auto-completion of:

Action

Variable Name

  • If you enter the first letters of a variable name, you can press <Ctrl+J> to automatically complete the name.
  • A pop-up list opens with possible choices if several declared variable names match the typed characters.

FB Member

Type the name of a function block instance (used either as an instance or a data structure).

Press the point (.) after the name of the instance; a pop-up list opens with the names of possible members.

Other Syntax-related Commands

When lines are selected, you can automatically indent them.

Press <Tab> or <Shift+Tab> to shift the lines to the left or right, by adding or removing blank characters on the left.