Possible Duplicates:
Visual Studio 6 tips and tricks
Visual Studio 2005 Shortcuts
Favorite Visual Studio keyboard shortcuts
I am a big fan of shortcuts in VS2008, it can save a lot of time and keep your fingers on the keyboard instead of the mouse.
Recently I downloaded the entire list of keyboard shortcuts for VS 2008 and went through them all finding my favourites.
Currently here are the top one’s I use:
- Shift + DEL: Deletes an entire line
- Ctrl + Shift + F10: Brings up the Using / Resolution box
- cw[tabx2]: Inserts Console.Writeline code
- ctor[tabx2]: Inserts default constructor code
What other ones do people know that saves time / are actually useful?
F12 Jump to definition
SHIFT + F12Find al references
CTRL + MINUS Jump back to previous cursor location
CTRL + SHIFT + MINUS Jump forward to last cursor location
CTRL + K , C Comment out currently selected code
CTRL + K , U Uncomment currently selected code
CTRL + K , F Format selected code
CTRL + K , D Format document
F5 Start Debugging
F6 Build Solution
F7 Switch to code view
Shift+ F7 Switch to design view
These are the ones I use most.
PS. Microsoft released keybinding posters for Visual Studio.
VS C# 2005 Keyboard Shortcut Reference Poster
VS C# 2008 Keyboard Shortcut Reference Poster