Dialog ‘Options’ - ‘Refactoring’

Symbol:

Function: This dialog is used for defining the operations in the project for which the automatic refactoring is suggested. The refactoring functionality helps you in your improvement endeavors.

Call: Menu bar: Tools ‣ Options (Refactoring).

‘Suggest refactoring for the following operations’

   
Auto declare When you change the name of a variable in a declaration by calling auto-declare (Shift+F2), the activated option Apply changes by means of refactoring appears. Then the Refactoring dialog opens and you can change the variable throughout the project.
: On renaming variables

: You specify the names in the auto-declare (dialog Declare variable) and click OK to close the dialog. Then the Refactoring dialog opens for renaming the variable throughout the project.

See the section: “Refactoring”, “Changing a variable declaration and applying refactoring automatically”.

: On adding or removing variables, or for changing the namespace : You delete the names in the auto-declare (dialog Declare variable) and click OK to close the dialog. Then the Refactoring dialog opens for removing the variable throughout the project.
Unit conversion editor : When you change the name of a conversion in the unit conversion editor, you are prompted whether CODESYS should perform “Automatic Refactoring” when renaming.
Mapping editor : When you change a variable name in the device editor (I/O Mapping tab), you are prompted whether CODESYS should perform “Automatic Refactoring” when renaming.
Navigator : When you change the name of an object in the device tree or in the POUs view, you are prompted whether CODESYS should perform “Automatic Refactoring” when renaming.
Tabular declaration editor : When you change the name of a variable in the tabular declaration editor, you are prompted whether CODESYS should perform “Automatic Refactoring” when renaming.

See also