Here’s a compilation of some Visual Studio keyboard shortcuts that I personally find useful. I have included some that may make their way into the Visual Studio 2010 release.

Useful shortcuts in Visual Studio 2008/2005

Before using the shortcut (if relevant) Shortcut / Notes After using the shortcut (if relevant)
image Comment  Ctrl+KC

Uncomment Ctrl+KU
image
image Collapse
Ctrl+ML

Expand
Ctrl+ML
image
image Multiple items in the clipboard?

Cycle through the clipboard

Ctrl+Shift+V
image
image Using Goto Definition to navigate? Want to find your way back?

Navigate back
Ctrl+minus

Navigate forward
Ctrl+Shift+minus
image
image Format Document
Ctrl+KD
image
image Goto Definition
F12
image
image Create Method
Ctrl+KM

Simply write the method assuming it exists. Highlight and use shortcut to create the method stub.
image
image Return to caller
Shift+F11

In debug mode, if you have stepped “into” a method using F11 and want to return back to the caller
image
image Attach to process
Ctrl+Alt+P
and select the process
image

New shortcuts coming in Visual Studio 2010

Note: The shortcuts listed were tested on VS2010 CTP VPC

image Quick Search
Ctrl + comma

Lets you search for methods, classes within a solution. Filters results as you type to narrow down on a method/class.
image
image Generate Class
Ctrl + period

Write the statement that instantiates an object of a class that does not exist and use this shortcut
image
image Zoom in/Zoom out
Ctrl+Roll mouse wheel
image

 

Happy .NETing! Check out more posts on this website!

Retweetkick it on DotNetKicks.com