Rename Refactoring

To rename an entity (type, method, macro etc.) in the source code along with all its references, place the cursor on the desired element then right click and select Refactor > Rename (or use the shortcut combination Shift+Alt+R).

You will be prompted for the new name of the entity:

../../_images/pss-refactoring-rename-newname.png

Click OK to perform the refactoring, or Preview to see the changes that are about to be performed in the source code.

In the Preview page you can select what changes should be performed:

  1. Select a file/change to see the source differences produced by the refactoring.

  2. Uncheck a file/change to prevent those changes from being applied.

After you click Finish the changes are performed, and the project is rebuilt.

../../_images/pss-refactoring-rename-preview.png