Summary

This chapter showed how the refactoring tools built into the C# editor for Visual Studio 2010 can greatly increase productivity and decrease unwanted side effects (bugs) when you’re making sweeping changes to your code to improve maintenance, reuse, and readability. The refactoring tools don’t simply make changes using text searches and replacements; they use the Visual Studio compiler to make and validate the code changes and this improves confidence in, and reliability of, the tools.

These tools can be accessed using the keyboard, the Refactor menu, a context menu, the Class Designer, and elsewhere. The refactoring tools enable you to change your code in many ways. You can easily rename items in your code. You can take existing lines ...

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.