Dialog Options - Smart coding
Function: The dialog is used to configure the settings that make it easier to enter code.
Call: TwinCAT > PLC programming environment > Smart Coding
Declare unknown variables automatically (AutoDeclare) | : The Auto Declare dialog opens as soon as you have entered an undeclared identifier in a programming language editor and exited the input line. For the AutoDeclare function to be available in the ST editor as well, the option Enable for the ST editor must also be enabled as of build 4026. |
Enable for the ST editor | Prerequisite: The option Declare unknown variables automatically (AutoDeclare) is enabled. : The AutoDeclare function is also available in the ST editor. : The AutoDeclare function is not available in the ST editor. (Available from Build 4026) |
Show all instance variables in input assistant | : The List components function also offers the local variables of a function block instance for selection. : The List components function only offers the input and output variables of an FB instance for selection. |
List components after typing a dot (.) | : Enables the List components function. This means: If you enter a dot at a point where TwinCAT expects an identifier, a selection list with input options appears. |
List components immediately when typing | Requirement: Option List components after typing a dot (.) is enabled. : After entering any character string, a selection list of the available identifiers and operators appears |
Insert with namespace | : TwinCAT automatically inserts the namespace before the identifier. |
Convert keywords to uppercase automatically (AutoFormat) | :TwinCAT automatically writes all keywords in capital letters. |
Automatically list selection in cross reference view | : The Cross Reference List automatically displays the references of the variables/POUs/DUTs that are currently selected or in which the cursor is positioned. |
Underline errors in the editor | : Erroneous or unknown program code is underlined. (Available from Build 4026) |
Highlight symbols | : All the places of use of a symbol on which the cursor is positioned are highlighted in color within the editor. This allows you to quickly identify cross-references within the editor. (Available from Build 4026) |
See also:
- PLC documentation: Programming languages and their editors
- PLC documentation: Using the input assistant
- PLC documentation: Find locations where the cross reference list is used