Renaming a Field or Method
See Also
To rename a field or method and update references to it throughout your project:
- 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.
- Right-click the field or method and choose Refactor > Rename
from the contextual menu.
- In the Rename dialog box, type the New Name.
- Click Next.
- 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.
- Click Do Refactoring to apply the selected changes.
- See Also
- Refactoring: Quick Reference
- Renaming a Class or Interface
- Undoing Refactoring Changes
Legal Notices