The most common 13 shortcut keys in Visual Studio

Source: Internet
Author: User

    Reprinted from:Http://developer.51cto.com/art/200904/122073.htm

    1. F5: start debugging

    2. F7/Shift-F7: DisplayCodeWindow or display designer window

    3. Alt-Enter: displays the attributes of the selected object (this is a common windows shortcut key, which can be used to display the attributes of directories and files)

    4. F6/Shift-F6/Ctrl-shift-B: Build solution/build project/build Solution

    5. Shift-alt-C: Add a class to the Project

    6. CTRL-K + ctrl-C: Comment out a selection code section.

    7. CTRL-K + ctrl-u: Cancel comments of a selected code

    8. CTRL-M + ctrl-o/Ctrl-M + ctrl-P: fold definition/expand all code (stop outline display)

    9. CTRL-M + Ctrl + M: Expand or collapse the code segment (switch to outline display)

    10. CTRL-B + ctrl-T: Switch code bookmarks

    11. CTRL-alt-P: Process with the Debugger Attached

    12. CTRL-alt-l: Display solution Browser

    13. CTRL-shift-A/alt-shift-A: add an item in the project/remove an item from the project

    The above is what the original author thinks is the longest commonly used one. I think there are fewer than 13, at least I would like to add the following:

    1. Forced smart sensing: Ctrl + J;

    2. Force smart sensing to display the parameter information: Ctrl-shift-space;

    3. format the entire block: Ctrl + K + F

    4. Check matching brackets (switch between left and right brackets): Ctrl +]

    5. Select the code from the cursor to the beginning (end) of the line: Shift + home (end)

    6. Switch between method definition and call: Ctrl + Shift + 7 (8)

    7. Set the breakpoint: F9

    8. Use tab to increase indentation and SHIFT + TAB to reduce indentation.

    9. format the entire code: Ctrl + k, d

    10. Set bookmarks: Ctrl + B + T. Jump to bookmarks: Ctrl + B + n

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.