Wednesday, April 14, 2010

Visual Studio 2008 Cheet Sheet

The other day I searched for a keyboard shortcut reference for Visual Studio 2008. After I saw the list of all the different shortcuts, I compiled a list of Visual Studio 2008 keyboard shortcuts for tasks that I use most frequently:

F5Start your project in debug mode
F7 & Shift-F7Show the code windows & show the designer window
Alt-Enter or F4Show the properties panel for a selected object
F6 / Shift-F6 / Ctrl-Shift-B Build Solution / Build Project / Build Solution
Shift-Alt-CAdd a new class to the project
Ctrl-Shift-A / Alt-Shift-AAdd a new item to your project / add an existing item to your project
Ctrl-K + Ctrl-CComment a selected block of code
Ctrl-K + Ctrl-UUncomment a selected block of code
Ctrl-M + Ctrl-O /
Ctrl-M + Ctrl-P
Collapse all code to definitions / Expand all code (stop collapsing)
Ctrl-K + Ctrl-KToggle code bookmark
Ctrl-K + Ctrl-NGo to next bookmark
Ctrl-K + Ctrl-PGo to previous bookmark
Ctrl-Shift-TabScroll backwards through open windows
F9 Set or remove a breakpoint
F12 Go to definition
Shift-F12 Display all references

Below are some of the VS2008 Keyboard Shortcuts Cheat Sheets that originally came up in my search:

Cheat Sheet with Key Images

22 Visual Studio Short Keys and 6 Short-cut Ways to Custom Jobs: A List of Tips and Tricks

Visual C# 2008 Keybinding Reference Poster

No comments: