Making (and Previewing) Changes

As you become comfortable with the refactoring tools, you might decide to simply let them do their thing without much oversight on your part. However, if you are like most developers, no one (or no tool) touches your code without your consent. Fortunately for us, the refactoring tools provide a preview option. This option lets you follow the tool through its changes and, in turn, accept or reject a given change. It also supports Undo should you want to revert your changes.

The Preview Changes dialog box is invoked as an option (check box) on a given Refactoring operation. Figure 9.3 shows an example of invoking the Rename operation from the context menu (right-click). In this case, we are renaming the InvoiceLineItems ...

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.