19 Must Know Visual Studio Shortcuts
- 2021-09-04 23:53:39
- OfStack
This article will list the shortcut keys commonly used in Visual Studio for everyone. Using shortcut keys correctly and skillfully will greatly improve your programming efficiency.
Project-related shortcut keys
Ctrl + Shift + B = Build Project
Ctrl + Alt + L = Display Solution Explorer (Solution Explorer)
Shift + Alt + C = Add new class
Shift + Alt + A = Add new project to project
Edit related keyboard shortcuts
Ctrl + Enter = Insert a blank line on the current line
Ctrl + Shift + Enter = Insert a blank line below the current line
Ctrl + Spacebar = Automated with IntelliSense (IntelliSense)
Alt + Shift + arrow keys (INTIBLE, ↑, ↓, →) = select the custom part of the code
Ctrl +} = Match braces, brackets
Ctrl + Shift +} = In matching parentheses, text is selected within the parentheses
Ctrl + Shift + S = Save all files and projects
Ctrl + K, Ctrl + C = comment selected line
Ctrl + K, Ctrl + U = Uncomment selected row
Ctrl + K, Ctrl + D = Align all code correctly
Shift + End = Select the whole line from beginning to end
Shift + Home = Entire line selection from tail to head
Ctrl + Delete = Delete all words to the right of the cursor
Keyboard shortcuts related to navigation
Ctrl + Up/Down = Scroll window without moving cursor
Ctrl +-= Move the cursor to its previous position
Ctrl + + = Move the cursor to the next 1 position
F12 = Go to Definition
Debug related keyboard shortcuts
Ctrl + Alt + P = Attach to Process
F10 = Debug Step
F5 = Start debugging
Shift + F5 = Stop debugging
Ctrl + Alt + Q = Add shortcut match
F9 = Set or Remove Breakpoints
Search for related keyboard shortcuts
Ctrl + K Ctrl + K = Bookmark current line
Ctrl + K Ctrl + N = Navigate to the next bookmark
Ctrl +. = If you type 1 class name such as Collection < string > And the namespace import is incorrect, this shortcut combination is automatically inserted into the import
Ctrl + Shift + F = Find in File
Shift + F12 = Find All References
Ctrl + F = Display Find Dialog Box
Ctrl + H = Display Replace Dialog Box
Ctrl + G = Jump to line number or line
Ctrl + Shift + F = Find references to selected entries throughout the solution
These are all the shortcut keys of Visual Studio. If there are any omissions, please add and share them.
Original English: 19 Must-Know Visual Studio Keyboard Shortcuts