This document provides a default keymap for Visual Studio that lists many common keyboard shortcuts for code editing, navigation, and refactoring. Shortcuts are included to complete code, find usages, comment/uncomment code, generate code, rename symbols, extract methods, and reformat code. The keymap also includes navigation shortcuts to go to types, declarations, implementations, bookmarks and related files.
This document provides a default keymap for Visual Studio that lists many common keyboard shortcuts for code editing, navigation, and refactoring. Shortcuts are included to complete code, find usages, comment/uncomment code, generate code, rename symbols, extract methods, and reformat code. The keymap also includes navigation shortcuts to go to types, declarations, implementations, bookmarks and related files.
This document provides a default keymap for Visual Studio that lists many common keyboard shortcuts for code editing, navigation, and refactoring. Shortcuts are included to complete code, find usages, comment/uncomment code, generate code, rename symbols, extract methods, and reformat code. The keymap also includes navigation shortcuts to go to types, declarations, implementations, bookmarks and related files.
Symbol code completion Ctrl+Space Go to everything Ctrl+T Show available quick-fixes
and context actions Alt+Enter Smart code completion Ctrl+Alt+Space Go to type Ctrl+T (second hit)
Parameter info Ctrl+Shift+Space Go to symbol Shift+Alt+T
Inspect this Ctrl+Shift+Alt+A Go to previous signature Go to word Ctrl+T+T+T Inspection Results window Ctrl+Alt+V (in parameter info) Ctrl+Shift+Alt+Space Go to file Ctrl+Shift+T View type hierarchy Ctrl+E, H Extend selection Ctrl+Alt+Right Go to file member Alt+\ Go to next highlight Shrink selection Ctrl+Alt+Left (error, warning or suggestion) Alt+PgDn Duplicate a line or selection Ctrl+D Find usages Shift+F12 Go to previous highlight Select containing declaration Ctrl+Shift+[ Find usages (advanced) Ctrl+Shift+Alt+F12 (error, warning or suggestion) Alt+PgUp
Comment/uncomment line Ctrl+Alt+/ Find Results window Ctrl+Alt+F12
Refactor this Ctrl+Shift+R Comment/uncomment block Ctrl+Shift+/ Highlight usages in file Shift+Alt+F11 Rename Ctrl+R, R Go to previous usage Ctrl+Alt+PgUp Generate code (constructors, properties, Extract method Ctrl+R, M Go to next usage Ctrl+Alt+PgDn implementing/overriding members, etc) Alt+Ins Introduce variable Ctrl+R, V Insert live template Ctrl+E, L Navigate to Alt+` Change signature Ctrl+R, S Surround with template Ctrl+E, U Go to declaration/definition F12 Create file from template Alt+Ins in Solution Explorer Code cleanup Ctrl+E, C Go to type of symbol Ctrl+Shift+F11 Apply code style Ctrl+Alt+S Go to implementation Ctrl+F12 Go to last edit location Ctrl+Shift+Backspace Reformat code Ctrl+Alt+Enter Go to base symbols Alt+Home View recent files Ctrl+, Go to derived symbols Alt+End View recent edits Ctrl+Shift+, Go to usage Shift+Alt+F12 Go to related files Ctrl+Alt+F7
View bookmarks Ctrl+`
File structure Ctrl+Alt+F Go to bookmark Ctrl+[numeric key] Go to next/previous member Alt+ / Set/remove bookmark Ctrl+Shift+[numeric key] Go to containing declaration Ctrl+[ Quick documentation Ctrl+Shift+F1 To-do items Ctrl+Alt+D