Visual Studio Keyboard Shortcuts
Boost your productivity with these essential Visual Studio keyboard shortcuts. This guide covers shortcuts for search and navigation, editor commands, and solution explorer management.
Shortcuts
Search & Navigation
Ctrl + ,: Go to AllCtrl + T: Go to AllCtrl + Shift + T: Go to filesCtrl + 1 + T: Go to typesCtrl + 1 + M: Go to membersCtrl + Shift + F: Find in FilesCtrl + Shift + H: Replace in FilesCtrl + Shift + I: Find in fileCtrl + F: Find in fileCtrl + Q: Feature Search
Editor
Ctrl + G: Go to LineCtrl + L: Remove LineCtrl + Enter: New line above the current lineCtrl + .: Quick Actions and RefactoringsShift + Alt + F10: Quick Actions and RefactoringsAlt + Up Arrow: Move line(s) upAlt + Down Arrow: Move line(s) downCtrl + K, Ctrl + C: Comment LineCtrl + K, Ctrl + U: Uncomment LineShift + Alt + Arrow: Select / Edit multiple linesCtrl + Alt + Left Click: Select / Edit multiple carets linesAlt + Shift + ;: Insert carets at all matching locationsAlt + Shift + .: Insert carets at next matching location
Solution Explorer
Ctrl + Alt + L: Switch focus to Solution ExplorerCtrl + Tab: Switch focus back to EditorCtrl + ;: Search in Solution ExplorerCtrl+[, S: Select Active File in Solution ExplorerCtrl + Left Arrow: Collapse All descendants
References
For more detailed information, check out these resources: