Accessing the Rename Operation
You can rename from many places within the IDE. In the section “Invoking the Refactoring Tools,” earlier in this chapter, we looked at accessing Refactoring operations from the Quick Actions (light bulb) menu. You get this menu when you rename a type or method in the code editor. This allows you to apply the rename to the other code elements that reference the renamed item. You can also access Rename by right-clicking an element in the code editor. In addition, if you use the Properties dialog box to change the name of a control you’ve placed on a form or an element within class view. In both instances the Rename operation is invoked behind the scenes, and the item is renamed appropriately.
As an example, from the ...
Get Microsoft Visual Studio 2015 Unleashed, Third Edition 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.