Accessing the Rename Operation

You can rename from many places within the IDE. In the previous “Invoking the Refactoring Tools” section, we looked at accessing Rename from the Refactor menu, a right-click, a smart tag, and the Class Designer. You can also access Rename from the Object Browser, Solution Explorer, and Class View. In addition, if you use the Properties dialog box to change the name of a control you’ve placed on a form, the Rename operation is invoked behind the scenes and the control is renamed appropriately.

From the Object Browser, you can access the Rename operation only from the Refactor menu. Of course, you need to be browsing your own types in your solution. You select the item you want to rename and then click the Refactor ...

Get Microsoft® Visual Studio® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.