7.7.5 Renaming a Function or Parameter

To rename a function or parameter and update references to it throughout your project:

  1. In the Source Editor, right click the function or parameter and choose Refactor > Rename from the context menu.
  2. In the Rename dialog box, type the New Name.
  3. Optionally, click Preview. In the Refactoring window, at the bottom of the Source Editor, review the lines of code that will be changed and clear the check box of any code that you do not want changed.
  4. Click Do Refactoring to apply the selected changes.

For quick in-place renaming, place the cursor in the item that you want to rename and press Ctrl + R. Then type the new name. To finish renaming, press Escape.