Default Keybindings: Refactoring Commands

Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio


Jump to: navigation, search
Visual C# Keyboard Shortcuts
edit

Refactoring commands default keybindings

These are the Visual C# IDE default keybindings for the Refactoring commands defined in the Visual C# 2005 profile.

The Visual Studio Refactoring commands are used to perform various refactoring operations on files, projects, and solutions.

Command Key(s) Description
Refactor.EncapsulateField CTRL + R, E Displays the Encapsulate Field dialog box which allows creation of a property from an existing field and updates all references to use the new property.
Refactor.ExtractInterface CTRL + R, I Displays the Extract Interface dialog box which allows creation of a new interface with members derived from an existing class, struct, or interface.
Refactor.ExtractMeth CTRL + R, M Displays the Extract Method dialog box which allows creation of a new method from the selected code.
Refactor.PromoteLocal-

VariabletoParameter

CTRL + R, P Moves a variable from a local usage to a method, indexer, or constructor parameter and updates all call sites appropriately.
Refactor.RemoveParameters CTRL + R, V Displays the Remove Parameters dialog box which allows removal of parameters from methods, indexers, or delegates by changing the declaration at any locations where the member is called.
Refactor.Rename CTRL + R, R or F2 Displays the Rename dialog box which allows renaming all references for an identifier.
Refactor.ReorderParameters CTRL + R, O Displays the Reorder Parameters dialog box which allows changes to the order of the parameters for methods, indexers, and delegates.

See also


Today's Deals: Electronics

Personal tools