The best shortcuts for Visual studio (which one do you like best)

Source: Internet
Author: User
Tags function definition
Every time on the Internet to find out what the common shortcut keys, out of the Forever is a string of long can not be long list, completely did not reflect the "commonly used" word, every time after reading the first few will not go down, I believe we all have this feeling. In fact, we usually use only a small part of the "28 principle"--20% of the commonly used shortcut keys to complete your 80% task, of course, 20% inaccurate, just to illustrate the fact. The following is my usual VS programming when the real use of more shortcut keys, so more than 10, see no pressure, read a few times can be completely remembered ~ ~ ~

Of course, everyone commonly used in general will be somewhat different, you are welcome to comment on their commonly used or the most commonly used shortcut keys, compare to see who used the skillful ~ ~ ~

ctrl+-(shift+ctrl+-)
: Move the cursor to the last position or the opposite, such as positioning a function, go to the function definition to return to the function, then use ctrl+-, if you want to return 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. It is very convenient to use with ctrl+-

Ctrl +]: Matching the selected brackets (curly braces, parentheses are all lines), very handy in multiple loops + judgment statements
Ctrl+space: Code-completion
Ctrl+tab: Toggles open windows in VS, switching individual files
Ctrl+i: Incremental Search, unlike Ctrl+f, the Search dialog box is not displayed during the search, and ctrl+f searches the next one by pressing ENTER, and ctrl+i the next time you press Ctrl+i or F3,escape to exit, pressing two times ctrl+i repeat the last search
ctrl+shift+f: Legacy File Search dialog box (similar to the search Replace box in Notepad, can be replaced)
ctrl+f3: Search for the currently selected section (no need to enter the content to search for)
Shift+alt+enter: Maximize code-writing area (code Full-screen mode), that is, remove all other auxiliary windows leaving only the code-writing window, and then return to the original interface once again
Ctrl+k,ctrl+c: Comment A block of code (first to select a piece of code) Ctrl+k,ctrl+u: Uncomment a block of code Ctrl+k,ctrl+d: Code is automatically formatted (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 line (without selecting the current row) on the next line in the current row, copying the current row and pasting it into the next line, which is useful when the two lines are similar, and can be copied and changed ctrl+l: Delete When moving forward
ctrl+m, Ctrl+m: Expands or closes the current code block


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.