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

Dialog Options - Smart coding 1:

Declare unknown variables automatically (AutoDeclare)

Dialog Options - Smart coding 2:: 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.

Dialog Options - Smart coding 3:: The AutoDeclare function is also available in the ST editor.

Dialog Options - Smart coding 4:: The AutoDeclare function is not available in the ST editor.

(Available from Build 4026)

Show all instance variables in input assistant

Dialog Options - Smart coding 5:: The List components function also offers the local variables of a function block instance for selection.

Dialog Options - Smart coding 6:: The List components function only offers the input and output variables of an FB instance for selection.

List components after typing a dot (.)

Dialog Options - Smart coding 7:: 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.

Dialog Options - Smart coding 8:: After entering any character string, a selection list of the available identifiers and operators appears

Insert with namespace

Dialog Options - Smart coding 9:: TwinCAT automatically inserts the namespace before the identifier.

Convert keywords to uppercase automatically (AutoFormat)

Dialog Options - Smart coding 10::TwinCAT automatically writes all keywords in capital letters.

Automatically list selection in cross reference view

Dialog Options - Smart coding 11:: 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

Dialog Options - Smart coding 12:: Erroneous or unknown program code is underlined.

(Available from Build 4026)

Highlight symbols

Dialog Options - Smart coding 13:: 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: