| Tabbing¹ | |
|---|---|
| Ctrl+Tab | Cycle tabs in application |
| Ctrl+F4 | Close Tab |
| Esc | Return to document window |
| Alt+Tab | Cycle though applications |
| Alt+F4 | Close application |
| Windows | |
| Ctrl+F11 | File Structure |
| F4 | Properties Window |
| F7 | Toggle .aspx + .aspx.cs |
| Ctrl+Alt+L | Solution explorer |
| Shift+Alt+L | Locate in solution explorer⁶ |
| Shift+Alt+Enter | Expand to full screen |
| Ctrl+E | Recent Files |
| Ctrl+Shift+E | Stack Trace Exprlorer paste in a stack trace. |
| Build | |
|---|---|
| Ctrl+Break | Stop Build |
| Crtl+(Shift)+S | Save (All) |
| Crtl+Shift+B | Build All |
| Test | |
| Alt+R+U+R | Run test (R#)¹¹ |
| Alt+R+U+D | Debug test (R#)¹¹ |
| Ctrl+R+T | Run Test (VS)⁴ |
| Ctrl+R+Ctrl+T | Debug Test (VS)⁴ |
| Debug | |
| (Shift)+F5 | Start (Stop) |
| F10 | Step Over |
| Ctrl+F10 | Run to Cursor |
| (Shift)+F11 | Step In (Out) |
| F9 | Breakpoint Toggle |
| Ctrl+Shift+F9 | Clear All Breakpoints |
| Ctrl+Alt+E | Set up Exceptions |
| Navigation | |
|---|---|
| Ctrl+Shift+G | Super Go |
| Crtl+Shift+Alt+G | Related Files (aspx from ascx) |
| Alt+F7 | Find Usgaes |
| Ctrl+Shift+Alt+F7 | Highlight Usgaes |
| Crtl+F12 | Go To Member*† |
| (Shift)+F12 | Next (Previous) quick fix |
| (Shift)+Alt+F12 | Next (Previous) error fix |
| Ctrl+N | Go To Type*†⁶ |
| Ctrl+Shift+N | Go To File*†⁶ |
| Ctrl+Shift+Alt+N | Go To Symbol (solution wide)*† |
| Crtl+- | Back |
| Crtl+Shift+- | Forward |
| Crtl+Shift+Backspace | Previous Edit |
| Crtl+Shift+Alt+Backspace | Show recent edits |
| Ctrl+G | Goto Line # |
| Ctrl+[ | Goto containing declaration |
| Ctrl+] | Find Matching bracket |
| Ctrl+(Shift)+F | Find (In Files) |
| Ctrl+(Shift)+H | Replace (In Files) |
| Ctrl+(Shift)+F3 | Find Selected (previous) |
| Alt+Down (Up) Arrow | Next (previous) member⁸ |
| Ctrl+Alt+Shift+A | Inspect this (inc type hierarchy) |
| Refactor | |
|---|---|
| F2 | Rename |
| Ctrl+Shift+R | Refactor this |
| Ctrl+Alt+V | Extract variable type declaration then extract |
| Alt+Enter | Quick Fix (lightbulb)³ ⁵ ¹⁰ split declaration-assignment move to outer scope |
| Regions | |
|---|---|
| Ctrl+M, Ctrl+M | Toggle Outlining |
| Ctrl+M, Ctrl+O | Collapse all region |
| Ctrl+M, Ctrl+P | Expand all regions |
| Bookmarks | |
| Ctrl+(number) | Goto Bookmark |
| Ctrl+Shift+(number) | Set Bookmark |
| Ctrl+` | View Bookmarks |
| Coding Assistance | |
|---|---|
| Ctrl+P | Parameter Information |
| Ctrl+/ | Comment/Uncomment |
| Ctrl+Shift+/ | Block Comment/Uncomment |
| Ctrl+(Shift)+W | Expand (Reduce) Selection |
| Ctrl+D | Duplicate line or selection |
| Ctrl+Shift+Space | Smart Intellisense‡⁷ |
| Ctrl+Alt+Space | Import Symbol Intellisense‡⁷ |
| Ctrl+Shift+Enter | Complete Statement |
| Ctrl+Shift+Alt+Arrow | Move Block⁸ |
| Code Generation/Templates | |
|---|---|
| Alt+Ins | Generate Members³ ⁹ constructor, properties, override members etc. ToString (Formatting) Implement inner accessors (Works in solution too) |
| Ctrl+J | Template Attribute class |
| Ctrl+Alt+J | Surround With Template 7 - {} |
| abbrv+Tab | Generate Snippet ctor cw prop(g) nguid - new guid |
| Edit | |
|---|---|
| Ctrl+L | Delete Line (clipboard) |
| Ctrl+Shift+L | Delete Line |
| Ctrl+K, Ctrl+F | Format Selection |
| Alt+Drag | Select block of text |
| Ctrl+Shift+V | Paste Multiple |
| Ctrl+Shift+U | Upper case |
| Ctrl+Backspace | Delete previous word |
| Ctrl+Delete | Delete next word |
| * Can type just the camel humps |
| † Switch between these windows, by retyping shortcut |
| ‡ Tab to replace, Enter to add² |
Visual Studio Keyboard Shortcuts