Text Generation and Refactoring

Shortcut

Menu equivalent

Action

Ctrl-Shift-Space bar

 

Shows the IntelliSense window for the current markup tag.

Ctrl-Space bar

 

Shows the IntelliSense window for the current class member.

Ctrl-J

Edit → IntelliSense → List Members

Opens an IntelliSense window displaying the classes and class members you can currently use.

Ctrl-Shift-J

 

Updates JScript IntelliSense.

Ctrl-K, Ctrl-M

Edit → IntelliSense → Generate Method Stub

Creates a method stub for the symbol currently under the cursor (if it doesn’t exist already).

Ctrl-K, Ctrl-S

Edit → IntelliSense → Surround With

Opens an IntelliSense window listing the code constructs with which you can surround the selected lines of code.

Ctrl-K, Ctrl-X

Edit → IntelliSense → Insert Snippet

Inserts a code snippet at the current cursor location.

Ctrl-Shift-Ins

 

Allows you to override base class methods in a derived class.

Ctrl-R, Ctrl-E

Refactor → Encapsulate Field

Encapsulates the member field into a property.

Ctrl-R, Ctrl-I

Refactor → Extract Interface

Extracts the interface definition from the current class.

Ctrl-R, Ctrl-M

Refactor → Extract Method

Extracts the selected lines of code into a separate method and replaces them with a call to that method.

Ctrl-R, Ctrl-P

Refactor → Promote Local Variable to Parameter

Encapsulates the local field declaration into a property.

Ctrl-R, Ctrl-V

Refactor → Remove Parameters

Removes the selected parameter from the constructor, indexer, method, or delegate.

Ctrl-R, Ctrl-R

Refactor → Rename

Renames the current symbol ...

Get Programming ASP.NET 3.5, 4th 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.