Command ‘Refactoring’ - ‘Rename <...>’

Function: This command opens a dialog box for renaming an object or variable across the project.

Call: Main menu Edit ‣ Refactoring or right-click.

Requirement: An object is selected in the device tree or in the POUs view, or the cursor is placed before or on a variable identifier in the declaration section of a programming object.

You can rename the following:

Dialog box ‘Rename’

Current name Name of the object or variable
New name

Input field for a new name.

If the name already exists, then CODESYS reports this directly below this input field.

OK

Can be activated if you have typed a valid name in New name.

Opens the Refactoring dialog box.

The affected objects and occurrences are highlighted in both views.

You can determine how to handle the occurrences in each view by right-clicking the occurrences and clicking the available commands.

Dialog box ‘Refactoring’

This dialog box displays all occurrences in the project.

The affected objects and occurrences are highlighted in both views.

Right view Displays the occurrence within an object where Current name occurs.
Left view Device tree of the project with the object.
You can determine how to handle the occurrences in each view by right-clicking the occurrences and clicking the available commands.
Reject this change Reject the single change in view on the right.
Accept this object Accept all changes in the affected object.
Reject this object Reject all changes in the affected object.
Accept whole project Accept all changes in the project.
Reject whole project Reject all changes in the project.
CODESYS highlights the accepted changes in yellow and the rejected changes in gray.

See also