Invoking the Refactoring Tools

The refactoring tools are available directly inside the code editor. You can invoke them in several ways. First, if your cursor is positioned near code that Visual Studio thinks could or should be refactored, you will see a light bulb in the left margin of the code editor (called the Quick Actions menu). You can click on this to see your options unfold in a context-sensitive, refactoring menu. Second, you can always access Quick Actions from the editor using the shortcut “control dot” (Ctrl+.). A right-click inside your code will also take you to Quick Actions from the context menu. Finally, the Visual Studio class designer supports edits that work as refactoring.

Note

Visual Studio has done away with the Refactoring ...

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.