Refactoring Shortcut Keys
This documentation is archived and is not being maintained.

Refactoring Shortcut Keys, Visual C# 2005 Scheme 

The following key combinations are shortcuts for performing Refactoring operations.

NoteNote

The options available in dialog boxes, and the names and locations of menu commands you see, might differ from what is described in Help depending on your active settings or edition. To change your settings, click Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

Command Name Shortcut Keys Description

Refactor.EncapsulateField

CTRL + R, CTRL + E

Displays the Encapsulate Field Dialog Box, which lets you create a property from an existing field and then updates your code to refer to the new property.

Refactor.ExtractInterface

CTRL + R, CTRL + I

Displays the Extract Interface Dialog Box, which lets you create a new interface with members derived from an existing class, struct, or interface.

Refactor.ExtractMethod

CTRL + R, CTRL + M

Displays the Extract Method Dialog Box, which lets you create a new method from a code fragment of an existing method.

Refactor.PromoteLocalVariabletoParameter

CTRL + R, CTRL + P

Moves a variable from a local usage to a method, indexer, or constructor parameter and updates the call sites correctly. For more information, see Promote Local Variable to Parameter.

Refactor.RemoveParameters

CTRL + R, CTRL + V

Displays the Remove Parameters dialog box, which removes parameters from methods, indexers, or delegates by changing the declaration at any locations where the member is called. For more information, see Remove Parameters.

Refactor.Rename

F2

- or -

CTRL + R, CTRL + R

Displays the Rename Dialog Box, which lets you rename identifiers for code symbols such as fields, local variables, methods, namespaces, properties, and types.

Refactor.ReorderParameters

CTRL + R, CTRL + O

Displays the Reorder Parameters Dialog Box, which lets you change the order of the parameters for methods, indexers, and delegates.

See Also

Show:
© 2016 Microsoft