In Visual Studio, you can access various commands and windows by selecting the appropriate keyboard shortcut. Below is a complete list of general shortcut commands. You can refer to it whenever needed :)
Navigate: General Shortcuts
| Commands | Keyboard Shortcuts |
|---|---|
| Navigate Backward | Shift+Alt+3 |
| Navigate Forward | Shift+Alt+4 |
Architecture: General Shortcuts
| Commands | Keyboard Shortcuts |
|---|---|
| New Diagram | Ctrl+\, Ctrl+N |
Azure: General Shortcuts
| Commands | Keyboard Shortcuts |
|---|---|
| Retry mobile service script operation | Ctrl+Number *, Ctrl+R |
| Show mobile service script error details | Ctrl+Number *, Ctrl+D |
Build: General Shortcuts
| Commands | Keyboard Shortcuts |
|---|---|
| Build Selection | Ctrl+B (Visual Studio 2019) |
| Build Solution | Ctrl+Shift+B |
| Cancel | Ctrl+Break |
| Compile | Ctrl+F7 |
| Run Code Analysis on Solution | Alt+F11 |
Class View Context Menus: General Shortcuts
| Commands | Keyboard Shortcuts |
|---|---|
| Properties | Alt+Enter |
Debugging: General Shortcuts
| Commands | Keyboard Shortcuts |
|---|---|
| Apply Code Changes | Alt+F10 |
| Attach to Process | Ctrl+Alt+P |
| Autos | Ctrl+Alt+V, A |
| Break All | Ctrl+Alt+Break |
| Breakpoints | Ctrl+Alt+B |
| Call Stack | Ctrl+Alt+C |
| Delete All Breakpoints | Ctrl+Shift+F9 |
| Launch | Alt+F2 |
| Disassembly | Ctrl+Alt+D |
| DOM Explorer | Ctrl+Alt+V, D |
| Enable Breakpoint | Ctrl+F9 |
| Exceptions | Ctrl+Alt+E |
| Function Breakpoint | Ctrl+K, B (Visual Studio 2019) Ctrl+B (Visual Studio 2017) |
| Go to Previous Search or IntelliTrace Event | Ctrl+Shift+F11 |
| Start Diagnostics | Alt+F5 |
| Immediate | Ctrl+Alt+I |
| IntelliTrace Calls | Ctrl+Alt+Y, T |
| IntelliTrace Events | Ctrl+Alt+Y, F |
| JavaScript Console | Ctrl+Alt+V, C |
| Locals | Ctrl+Alt+V, L |
| Process Combo Box | Ctrl+5 |
| Stack Frame Combo Box | Ctrl+7 |
| Thread Combo Box | Ctrl+6 |
| Toggle Flagged State for Current Thread | Ctrl+8 |
| Toggle Flagged Threads | Ctrl+9 |
| Memory 1 | Ctrl+Alt+M, 1 |
| Memory 2 | Ctrl+Alt+M, 2 |
| Memory 3 | Ctrl+Alt+M, 3 |
| Memory 4 | Ctrl+Alt+M, 4 |
| Modules | Ctrl+Alt+U |
| Parallel Stacks | Ctrl+Shift+D, S |
| Parallel Watch 1 | Ctrl+Shift+D, 1 |
| Parallel Watch 2 | Ctrl+Shift+D, 2 |
| Parallel Watch 3 | Ctrl+Shift+D, 3 |
| Parallel Watch 4 | Ctrl+Shift+D, 4 |
| Processes | Ctrl+Alt+Z |
| Quick Watch | Shift+F9 or Ctrl+Alt+Q |
| Reattach to Process | Shift+Alt+P |
| Refresh windowsapp | Ctrl+Shift+R |
| Registers | Ctrl+Alt+G |
| Restart | Ctrl+Shift+F5 |
| Run to Cursor | Ctrl+F10 |
| Set Next Statement | Ctrl+Shift+F10 |
| Show Call Stack on Code Map | Ctrl+Shift+' |
| Show Next Statement | Alt+Num * |
| Start | F5 |
| Start Windows Phone App Analysis | Alt+F1 |
| Start Without Debugging | Ctrl+F5 |
| Step Into | F11 |
| Step Into Current Process | Ctrl+Alt+F11 |
| Specific Step | Shift+Alt+F11 |
| Step Out | Shift+F11 |
| Skip Current Process | Ctrl+Shift+Alt+F11 |
| Step Over | F10 (While debugging: Executes a single statement) |
| Step Over | F10 (When not debugging: Starts debugging and stops at the first line of user code) |
| Step Over Current Process | Ctrl+Alt+F10 |
| Stop Debugging | Shift+F5 |
| Stop Performance Analysis | Shift+Alt+F2 |
| Tasks | Ctrl+Shift+D, K |
| Threads | Ctrl+Alt+H |
| Toggle Breakpoint | F9 |
| Toggle Disassembly | Ctrl+F11 |
| Watch 1 | Ctrl+Alt+W, 1 |
| Watch 2 | Ctrl+Alt+W, 2 |
| Watch 3 | Ctrl+Alt+W, 3 |
| Watch 4 | Ctrl+Alt+W, 4 |
Debugger Context Menus: General Shortcuts
| Commands | Keyboard Shortcuts |
|---|---|
| Delete | Alt+F9, D |
| Go to Disassembly | Alt+F9, A |
| Go to Source Code | Alt+F9, S |
Diagnostics Hub: General Shortcuts
| Command | Keyboard Shortcut |
|---|---|
| Stop Collection | Ctrl+Alt+F2 |
Edit: General Shortcuts
| Commands | Keyboard Shortcuts |
|---|---|
| Copy | Ctrl+C or Ctrl+Ins |
| Cut | Ctrl+X or Shift+Delete |
| Cycle Clipboard Ring | Ctrl+Shift+V or Ctrl+Shift+Ins |
| Delete | Delete |
| Duplicate | Ctrl+D |
| Find | Ctrl+F |
| Find All References | Shift+F12 |
| Find in Files | Ctrl+Shift+F |
| Find Next | F3 |
| Find Next Selected | Ctrl+F3 |
| Find Previous | Shift+F3 |
| Find Previous Selected | Ctrl+Shift+F3 |
| Generate Method | Ctrl+K, Ctrl+M |
| Go to Line | Ctrl+G |
| Go to All | Ctrl+ or Ctrl+T |
| Go to Declaration | Ctrl+F12 |
| Go to Definition | F12 |
| Go to Member | Ctrl+1, Ctrl+M or Ctrl+1, M or Alt+\ |
| Go to Next Location | F8 (Next error in Error List or Output window) |
| Go to Previous Location | Shift+F8 (Previous error in Error List or Output window) |
| Insert Snippet | Ctrl+K, Ctrl+X |
| Move Control Down | Ctrl+Down Arrow |
| Guide Move Control Down | Down Arrow |
| Move Control Left | Ctrl+Left Arrow |
| Guide Move Control Left | Left Arrow |
| Move Control Right | Ctrl+Right Arrow |
| Guide Move Control Right | Right Arrow |
| Move Control Up | Ctrl+Up Arrow |
| Guide Move Control Up | Up Arrow |
| Next Bookmark | Ctrl+K, Ctrl+N |
| Next Bookmark in Folder | Ctrl+Shift+K, Ctrl+Shift+N |
| Open File | Ctrl+Shift+G (Opens the filename under the cursor) |
| Paste | Ctrl+V or Shift+Ins |
| Previous Bookmark | Ctrl+K, Ctrl+P |
| Previous Bookmark in Folder | Ctrl+Shift+K, Ctrl+Shift+P |
| Quick Find Symbol | Shift+Alt+F12 |
| Redo | Ctrl+Y or Ctrl+Shift+Z or Shift+Alt+Undo Key |
| Refresh Remote References | Ctrl+Shift+J |
| Replace | Ctrl+H |
| Replace in Files | Ctrl+Shift+H |
| Select All | Ctrl+A |
| Select Next Control | Tab |
| Select Previous Control | Shift+Tab |
| Show Snaplines | Enter |
| Resize Control Down | Ctrl+Shift+Down Arrow |
| Guide Resize Control Down | Shift+Down Arrow |
| Resize Control Left | Ctrl+Shift+Left Arrow |
| Guide Resize Control Left | Shift+Left Arrow |
| Resize Control Right | Ctrl+Shift+Right Arrow |
| Guide Resize Control Right | Shift+Right Arrow |
| Resize Control Up | Ctrl+Shift+Up Arrow |
| Guide Resize Control Up | Shift+Up Arrow |
| Stop Search | Alt+F3, S |
| Surround With | Ctrl+K, Ctrl+S (available only in Visual Studio 2019 and earlier) |
| Undo | Ctrl+Z or Alt+Undo key |
Editor Context Menus: General Shortcuts
| Commands | Keyboard Shortcuts |
|---|---|
| Breakpoint Conditions | Alt+F9, C |
| Edit Breakpoint Labels | Alt+F9, L |
| Insert Temporary Breakpoint | Shift+Alt+F9, T |
| Show Item | Ctrl+' |
| Execute | Ctrl+Alt+F5 |
| Go to View | Ctrl+M, Ctrl+G |
| Toggle Header Code File | Ctrl+K, Ctrl+O (letter 'O') |
| View Call Hierarchy | Ctrl+K, Ctrl+T or Ctrl+K, T |
File: General Shortcuts
| Commands | Keyboard Shortcuts |
|---|---|
| Exit | Alt+F4 |
| New File | Ctrl+N |
| New Project | Ctrl+Shift+N |
| New Website | Shift+Alt+N |
| Open File | Ctrl+O (letter 'O') |
| Open Project | Ctrl+Shift+O (letter 'O') |
| Open Website | Shift+Alt+O (letter 'O') |
| Ctrl+P | |
| Save All | Ctrl+Shift+S |
| Save Selected Items | Ctrl+S |
| View in Browser | Ctrl+Shift+W |
Help: General Shortcuts
| Commands | Keyboard Shortcuts |
|---|---|
| Add or Remove Help Content | Ctrl+Alt+F1 |
| F1 Help | F1 |
| View Help | Ctrl+F1 |
| Contextual Help | Shift+F1 |
Other Context Menus: General Shortcuts
| Command | Keyboard Shortcut |
|---|---|
| Add New Diagram | Insert |
Project: General Shortcuts
| Commands | Keyboard Shortcuts |
|---|---|
| Add Existing Item | Shift+Alt+A |
| Add New Item | Ctrl+Shift+A |
| Class Wizard | Ctrl+Shift+X |
| Override | Ctrl+Alt+Ins |
| Previous Changes | Alt+; then Alt+C |
| Publish Selected Files | Alt+; then Alt+P |
| Replace Selected Files from Server | Alt+; then Alt+R |
Project and Solution Context Menus: General Shortcuts
| Commands | Keyboard Shortcuts |
|---|---|
| Move Down | Alt+Down Arrow |
| Move Up | Alt+Up Arrow |
Refactoring: General Shortcuts
| Commands | Keyboard Shortcuts |
|---|---|
| Encapsulate Field | Ctrl+R, Ctrl+E |
| Extract Interface | Ctrl+R, Ctrl+I |
| Extract Method | Ctrl+R, Ctrl+M |
| Remove Parameters | Ctrl+R, Ctrl+V |
| Rename | Ctrl+R, Ctrl+R |
| Reorder Parameters | Ctrl+R, Ctrl+O ('O' letter) |
Solution Explorer: General Shortcuts
| Commands | Keyboard Shortcuts |
|---|---|
| Open File Filter | Ctrl+[, O (letter 'O') or Ctrl+[, Ctrl+O (letter 'O') |
| Pending Changes Filter | Ctrl+[, P or Ctrl+[, Ctrl+P |
| Sync with Active Document | Ctrl+[, S or Ctrl+[, Ctrl+S |
Team: General Shortcuts
| Commands | Keyboard Shortcuts |
|---|---|
| Go to Git branches | Ctrl+0 (zero), Ctrl+N or Ctrl+0, N |
| Go to Git changes | Ctrl+0 (zero), Ctrl+G or Ctrl+0, G |
| Go to Git commits | Ctrl+0 (zero), Ctrl+O (letter 'O') or Ctrl+0, O |
| Team Explorer search | Ctrl+' |
Team Foundation Context Menus: General Shortcuts
| Commands | Keyboard Shortcuts |
|---|---|
| Go to Builds | Ctrl+0 (zero), Ctrl+B or Ctrl+0, B |
| Go to Connect | Ctrl+0 (zero), Ctrl+C or Ctrl+0, C |
| Go to Documents | Ctrl+0 (zero), Ctrl+D or Ctrl+0, D |
| Go to Home | Ctrl+0 (zero), Ctrl+H or Ctrl+0, H |
| Go to My Work | Ctrl+0 (zero), Ctrl+M or Ctrl+0, M |
| Go to Pending Changes | Ctrl+0 (zero), Ctrl+P or Ctrl+0, P |
| Go to Reports | Ctrl+0 (zero), Ctrl+R or Ctrl+0, R |
| Go to Settings | Ctrl+0 (zero), Ctrl+S or Ctrl+0, S |
| Go to Web Access | Ctrl+0 (zero), Ctrl+A or Ctrl+0, A |
| Go to Work Items | Ctrl+0 (zero), Ctrl+W or Ctrl+0, W |
Test: General Shortcuts
| Commands | Keyboard Shortcuts |
|---|---|
| Use Coded UI Test Builder | Ctrl+\, Ctrl+C |
| Use Existing Action Recording | Ctrl+\, Ctrl+A |
Test Explorer: General Shortcuts
| Commands | Keyboard Shortcuts |
|---|---|
| Debug All Tests | Ctrl+R, Ctrl+A |
| Debug All Tests in Context | Ctrl+R, Ctrl+T |
| Debug Last Run | Ctrl+R, D |
| Repeat Last Run | Ctrl+R, L |
| Run All Tests | Ctrl+R, A |
| Run All Tests in Context | Ctrl+R, T |
| Show Test Explorer | Ctrl+E, T |
| Open Tab | Ctrl+E, L |
| Code Coverage Results | Ctrl+E, C |
Tools: General Shortcuts
| Commands | Keyboard Shortcuts |
|---|---|
| Attach to Process | Ctrl+Alt+P |
| Snippet Manager | Ctrl+K, Ctrl+B |
| Force GC | Ctrl+Shift+Alt+F12, Ctrl+Shift+Alt+F12 |
View: General Shortcuts
| Commands | Keyboard Shortcuts |
|---|---|
| All Windows | Shift+Alt+M |
| Architecture Explorer | Ctrl+\, Ctrl+R |
| Back | Alt+Left Arrow |
| Bookmark Window | Ctrl+K, Ctrl+W |
| Browse Next | Ctrl+Shift+1 |
| Browse Previous | Ctrl+Shift+2 |
| Call Hierarchy | Ctrl+Alt+K |
| Class View | Ctrl+Shift+C |
| Class View Search Box | Ctrl+K, Ctrl+V |
| Code Definition Window | Ctrl+\, D or Ctrl+\, Ctrl+D |
| Command Window | Ctrl+Alt+A |
| Data Sources | Shift+Alt+D |
| Document Outline | Ctrl+Alt+T |
| Rename | F2 |
| Error List | Ctrl+\, E or Ctrl+\, Ctrl+E |
| F# Interactive | Ctrl+Alt+F |
| Find Symbol Results | Ctrl+Alt+F12 |
| Forward | Alt+Right Arrow |
| Browse Forward Context | Ctrl+Shift+7 |
| Full Screen | Shift+Alt+Enter |
| Navigate Backward | Ctrl+- |
| Navigate Forward | Ctrl+Shift+- |
| Next Error | Ctrl+Shift+F12 |
| Notifications | Ctrl+W, N or Ctrl+W, Ctrl+N |
| Object Browser | Ctrl+Alt+J |
| Object Browser Search Box | Ctrl+K, Ctrl+R |
| Output | Ctrl+Alt+O |
| Pop Browse Context | Ctrl+Shift+8 |
| Properties Window | F4 |
| Property Pages | Shift+F4 |
| Resource View | Ctrl+Shift+E |
| Server Explorer | Ctrl+Alt+S |
| Show Smart Tag | Shift+Alt+F10 or Ctrl+. |
| Solution Explorer | Ctrl+Alt+L |
| SQL Server Object Explorer | Ctrl+\, Ctrl+S |
| Task List | Ctrl+\, T or Ctrl+\, Ctrl+T |
| TFS Team Explorer | Ctrl+\, Ctrl+M |
| Toolbox | Ctrl+Alt+X |
| UML Model Explorer | Ctrl+\, Ctrl+U |
| View Code | F7 |
| View Designer | Shift+F7 |
| Web Browser | Ctrl+Alt+R |
| Zoom In | Ctrl+Shift+. |
| Zoom Out | Ctrl+Shift+, |
| Show Test Explorer | Ctrl+E, T |
Window: General Shortcuts
| Commands | Keyboard Shortcuts |
|---|---|
| Activate document window | Esc |
| Add tab to selection | Ctrl+Shift+Alt+Space |
| Close document window | Ctrl+F4 |
| Close tool window | Shift+Esc |
| Keep tab open | Ctrl+Alt+Home |
| Go to navigation bar | Ctrl+F2 |
| Next document window | Ctrl+F6 |
| Next document window navigation | Ctrl+Tab |
| Next pane | Alt+F6 |
| Next pane segment | F6 |
| Next tab | Ctrl+Alt+PgDn or Ctrl+PgDn |
| Next tab and add to selection | Ctrl+Shift+Alt+PgDn |
| Next tool window navigation | Alt+F7 |
| Previous document window | Ctrl+Shift+F6 |
| Previous document window navigation | Ctrl+Shift+Tab |
| Previous pane | Shift+Alt+F6 |
| Previous pane segment | Shift+F6 |
| Previous tab | Ctrl+Alt+PgUp or Ctrl+PgUp |
| Previous tab and add to selection | Ctrl+Shift+Alt+PgUp |
| Previous tool window navigation | Shift+Alt+F7 |
| Quick Launch | Ctrl+Q |
| Quick Launch previous category | Ctrl+Shift+Q |
| Show Dock menu | Alt+- |
| Show Ex MDI file list | Ctrl+Alt+Down Arrow |
| Solution Explorer search | Ctrl+; |
| Window search | Alt+' |
Related Articles
Recommended Tools for Web Development
0 Comments
The Fundamentals of Web Development
0 Comments
Comments ()
No comments yet. Be the first to comment!