Visual Studio. Hotkeys
Other names: keyboard shortcuts, key bindings
Editor
shift + enter: New line underneathctrl + d: Duplicate linectrl + shift + up/down: edit multiple lines at oncectrl + l: delete line (cut)ctrl + k, ctrl + c: comment selection
Go to Definition, Implementation, Declaration, References
F12: Go to definitionCtrl+F12: Go to implementation
Collapse all definitions/methods
ctrl+m ctrl+o: Collapse all definitions/methodsctrl+m ctrl+p: Expand allctrl+m ctrl+m: Toggle collapse and expand current section
Intellisense
ctrl + space: Show complete suggestions. Will list all words available for completion in the current contextalt + right arrow: Show complete suggestionsalt + /: Copilot
Refactoring
Ctrl+Shift+R: Refactor this (Displays a list of refactoring options)Ctrl+.: Quick actions and refactoringsCtrl+K+E: Sort usings and remove "unused usings" in the fileCtr+R Ctrl+G: Sort usings and remove "unused usings" in the file
Formatting
ctrl+k+d: Format code (entire document)ctrl+k+f: Format Code (selection only)
Navigation in the current file
ctrl+left/right: Skip a word left/rightHome: Go to start of the lineEnd: Go to the end of the linePgUp/PgDown:shift+PgUp/PgDown: move to the top/bottom of the screenctrl+Home: Go to the first line of the documentctrl+End: Go to the last line of the documentalt+up/down: Go to the next method up/down
Window Management
shift+alt+enter: enter full screen
Bookmarks
ctrl+k ctrl+k: Set bookmarkctrl+k ctrl+p: Go to previous bookmarkctrl+k ctrl+n: Go to next bookmark
Navigation between files
ctrl+,: go to filectrl+t: go to type