Visual Studio is shipped with hundreds of keyboard shortcuts. Here are my favorites:
General:
- Go to Definition: F12
- Find all References: Shift + F12
- Go to last edited position in code: Ctrl – - (Ctrl – Dash)
- Delete Line: Ctrl – L
- Cut Line: Shift – Del
- Copy Line: Ctrl – C (no need to select the text before)
- Comment/Uncomment: Ctrl – K – C / Ctrl – K – U
- Insert Snippet: Ctrl – K – X
- Surround with Snippet: Ctrl – K – S (mark selection to be surrounded first)
- Full Screen: Shift – Alt – Enter
Debugging:
- Show Immediate Window: Ctrl – Alt – I
- Run to Cursor: Ctrl – F10
- Toggle Halt on Exceptions: Ctrl – D – E
Technorati-Tags: Visual Studio,vs2008,tips