Monday, July 7, 2008

Visual Studio: Hot Keys: Refactoring

Note all of the Refactoring Hot Key Chords start with Ctrl R.

Ctrl + R E
Encapsulate a Field, creates a property from a field

Ctrl + R I
Extract an Interface, create a new interface from an existing class, interface or struct

Ctrl + R M
Extract Method, create method from code selection

Ctrl + R P
Promote to Parameter, promote a local variable to a parameter

Ctrl + R V
Remove Parameters

Ctrl + R R
Rename, allows renaming of identifier

Ctrl + R O
Change Order of Parameters

No comments: