Renaming a Field or Method

See Also

To rename a field or method and update references to it throughout your project:

  1. In the Projects window or the Source Editor window, expand the node for the source file and its subnodes until the field or method is displayed in the tree view.
  2. Right-click the field or method and choose Refactor > Rename from the contextual menu.
  3. In the Rename dialog box, type the New Name.
  4. Click Next.
  5. In the Refactoring window, review the lines of code that will be changed and clear the checkbox of any code that you do not want changed.
  6. Click Do Refactoring to apply the selected changes.
See Also
Refactoring: Quick Reference
Renaming a Class or Interface
Undoing Refactoring Changes

Legal Notices