Of course, everyone commonly used generally will be some different, welcome to comment on their own commonly used or the most commonly used shortcut bar, compared to see who used the Qiao ~ ~ ~
ctrl+-(shift+ctrl+-): Move the cursor to the last position or the opposite, such as positioning a function, go to function definition to return to the function, then use ctrl+-, if you want to go back to the function definition, you can press shift+ctrl+-
F12: Go To Definition, where a variable or function is defined, such as a variable declaration, where the function is implemented. Very convenient to use with ctrl+-
Ctrl +]: Matches the selected parentheses (curly braces, parentheses), which is very handy in multi-layered loops + judgment statements
ctrl+space: Code completion
ctrl+tab: Toggle open windows in VS, switch individual files
ctrl+i: Incremental Search, unlike Ctrl+f, the Search dialog box is not displayed during the search, and ctrl+f search next press Enter directly, and Ctrl+i search next press Ctrl+i or F3,escape exit, Repeat last search by two consecutive ctrl+i
ctrl+shift+f: Legacy File Search dialog box (similar to the search replacement box in Notepad, can be replaced)
ctrl+f3: Search for the currently selected section (no need to enter content to search)
shift+alt+enter: Maximize Code Authoring Area (code full-screen mode), i.e. remove all other secondary windows leaving only the code-writing window, then press once back to the original interface
ctrl+k,ctrl+c: Comment A block of code (first select a piece of code)
ctrl+k,ctrl+u: Uncomment a block of code
ctrl+k,ctrl+d: Automatic formatting of code (entire document)
ctrl+k,ctrl+f: Format only the part you selected
ctrl+k,ctrl+k: Create a bookmark on the current line
ctrl+k, CTRL + N: Go to the next bookmark
CTRL + C, CTRL + V: Copies the current row contents (without checking the current row) on the next line of the current row, copying the current row and pasting it to the next line, which is useful when the two lines are similar, and can be copied and changed
ctrl+l: Delete the current row
ctrl+m, ctrl+m: Expand or close the current code
The best shortcut keys for Visual Studio