Share via


Refactoring Shortcut Keys, Visual Studio 6 Scheme

The following key combinations can be used to optimize code to improve it after it has been written.

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.PromoteLocalVariable

CTRL + R, CTRL + P

Moves a variable from a local usage to a method, indexer, or constructor parameter and updates the call sites. 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 all locations where the member is called. For more information, see Remove Parameters.

Refactor.Rename

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

Reference

Visual Studio 6.0 Default Shortcut Keys