This article will give you a list of the shortcuts that are commonly used in Visual Studio, and using shortcut keys correctly and skillfully will greatly improve your programming productivity.
Project-related shortcut keys
Ctrl + Shift + B = Build Project
Ctrl + Alt + L = Show Solution Explorer (Solution Explorer)
Shift + ALT + C = Add New Class
Shift + Alt + A = Add New item to project
Edit related keyboard shortcuts
Ctrl + Enter = Blank lines are inserted in the current line
Ctrl + Shift + Enter = blank line inserted below the current line
Ctrl + SPACEBAR = auto-complete with IntelliSense (IntelliSense)
ALT + Shift + arrow key (←,↑,↓,→) = Select Custom section of code
Ctrl +} = Match curly braces, parentheses
Ctrl + Shift +} = Select text within the matching parentheses and parentheses
Ctrl + Shift + S = Save All files and items
Ctrl + K,ctrl + C = Comment selected line
Ctrl + K,ctrl + U = Uncomment the selected line
Ctrl + K,ctrl + D = correct alignment of all code
Ctrl + R,ctrl + E = Quick Generate Property Code
Shift + End = Select entire row from start to finish
Shift + Home = Select entire row from end of head
Ctrl + DELETE = Delete all words to the right of the cursor
Navigation-related keyboard shortcuts
Ctrl +up/down = Scrolls the window but does not move the cursor
Ctrl +-= Let the cursor move to its previous position
Ctrl + + = Let the cursor move to the next position
F12 = go To Definition
debugging-related keyboard shortcuts
Ctrl + Alt + P = Attach to Process
F10 = Debug Single-Step execution
F5 = Start Debugging
Shift + F5 = Stop Debugging
Ctrl + Alt + Q = Add Quick Match
F9 = Set or remove breakpoints
Search for related keyboard shortcuts
CTRL + K CTRL + K = Add Bookmark to Current line
CTRL + K CTRL + N = Navigate to Next Bookmark
Ctrl +. = If you type a class name such as Collection<string>, and the namespace import is incorrect, then this shortcut combination will be automatically inserted into the import
Ctrl + Shift + F = Find in File
Shift + F12 = Find All References
Ctrl + F = Show Find dialog box
Ctrl + H = Show Replace dialog box
Ctrl + G = jump To line number or line
Ctrl + Shift + F = Find references to the selected entries throughout the solution
These are all the shortcut keys for Visual Studio, and if there are any omissions, welcome to the supplemental share.
19 Visual Studio shortcut keys that you must know