The best shortcut keys for Visual Studio

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.