Renaming Code

Renaming code elements is the most common Refactoring operation. Visual Studio supports Rename operations in Visual Basic, C#, C++, database schemas, and other code elements. Thankfully, all these Rename operations work in a similar fashion.

Most developers do not wait until the code base is operational and say to themselves, “Okay, now I will go back and rename items for clarity.” The more likely scenario is that as you build your application, you consistently rename items to correct mistakes or make things clearer and more readable. Of course, as the code base builds, it becomes more and more difficult to rename classes, methods, fields, and the like without introducing new bugs into your code.

The capability to rename items ...

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.