Keyboard shortcut: [Shift]+[F2]
Function: The command opens the “Auto Declare” dialog which helps to declare a variable.
Call: “Edit” menu
Requirement: An object or a device of the project is open in the editor.
With the auto-declaration function, the “Auto Declare” dialog is also displayed when the cursor is positioned in the implementation part of a POU in a line which contains the name of an undeclared variable. The requirement is that you first have to select the “Declare unknown variables automatically (AutoDeclare)” option in the “Tools Options” menu, in the “SmartCoding” category.
With the smart tag function, the “Auto Declare” command is also displayed when you place the cursor over an undeclared variable in
the implementation part of the ST editor and then click .
-
See also: ⮫ SmartCoding
-
Dialog: Auto Declare
-
Dialog: Array
-
Dialog: Initialization value