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 a custom part of the code
Ctrl +} = Match curly braces, parentheses
Ctrl + Shift +} = Select text within the matching brackets, 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
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
19 Visual Studio shortcut keys that you must know