19 required Visual Studio shortcuts, Visual Studio
This article will list common shortcut keys in Visual Studio. Correct and skillful use of the shortcut keys will greatly improve your programming efficiency.
Project-related shortcut keys
Ctrl + Shift + B = generate a project
Ctrl + Alt + L = show Solution Explorer (Solution Resource Manager)
Shift + Alt + C = add new class
Shift + Alt + A = Add A new project to the Project
Edit related keyboard shortcuts
Ctrl + Enter = insert blank lines in the current row
Ctrl + Shift + Enter = insert blank lines under the current row
Ctrl + Space key = use intelliisense (smart sensing) to automatically complete
Alt + Shift + arrow (Keys, keys, keys, →) = select the custom part of the code
Ctrl +} = matching braces and parentheses
Ctrl + Shift ++} = select text in matching brackets
Ctrl + Shift + S = save all files and projects
Ctrl + K, Ctrl + C = comment on the selected row
Ctrl + K, Ctrl + U = uncomment the selected row
Ctrl + K, Ctrl + D = correct alignment of all codes
Shift + End = select the entire line from start to End
Shift + Home = select the entire line from the end to the header
Ctrl + Delete = Delete all words on the right of the cursor
Navigation-related keyboard shortcuts
Ctrl + Up/Down = scroll the window without moving the cursor
Ctrl +-= move the cursor to its previous position
Ctrl ++ = move the cursor to the next position
F12 = go to definition
Debug related keyboard shortcuts
Ctrl + Alt + P = attach to process
F10 = debug one-step execution
F5 = start debugging
Shift + F5 = stop debugging
Ctrl + Alt + Q = add Quick Match
F9 = set or delete a breakpoint
Search for related keyboard shortcuts
Ctrl + K = bookmark the current row
Ctrl + K Ctrl + N = navigate to the next bookmarks
Ctrl +. = If you type a class name such as Collection <string> and the namespace import is incorrect, the shortcut combination will be automatically inserted and imported.
Ctrl + Shift + F = find in file
Shift + F12 = search for all references
Ctrl + F = show Search dialog box
Ctrl + H = show the replacement dialog box
Ctrl + G = jump to the row number or line
Ctrl + Shift + F = find the reference of the selected entry in the entire solution
These are all shortcut keys for Visual Studio. If you have any omissions, please share them with us.
19 Must-Know Visual Studio Keyboard Shortcuts
The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.