Visual Studio 2012 Common shortcut keys

Source: Internet
Author: User

  1. Program text Editing class

    1.ctrl+k,ctrl+c add multiple lines of comments (//)

    Ctrl+k,ctrl+u removing multiple lines of comment

    2. Format the selected code (the formatting of the code reflow) ctrl+k+f

    Suitable for those who do not pay attention to the code specification, if you look at other people's code, you can first format his code, so it looks better. Also easy for you to analyze the code, highly recommended!

    3. Rearrange the code for the entire document (the code that formats the entire document)

    Ctrl+a,alt+f8

    4. Definition of collapsed and expanded code

    Ctrl+m,o;ctrl+m,l

    5. Document positioning to the last, first

    Ctrl+end;ctrl+home

    6. Go To Definition (General for function)

    F12

    7. List members (after the object name, to list the members of this object; directly after the "::" of the document, listing the global objects, classes, data, etc.), very useful

    Ctrl+j

    8. Related project categories

    Build Project Solution (Run)

    Ctrl+shift+b

    Open Project

    Ctrl+shift+o

    New class

    Shift+alt+c

    New Item

    Ctrl+shift+a

    9. about windows

    Solution Manager

    Ctrl+w,s

    Class View

    Ctrl+shift+c

    Toolbox

    Ctrl+w,x

    Open the View window

    Ctrl+shift+c

    Error List

    Ctrl+w,e

    Output view

    Ctrl+w,o

  2. 10 About debugging

    Start Debugging F5

    Run Ctrl+f5

    Toggle Breakpoint F9

    Breakpoint Window Ctrl+d,b

    Delete all Breakpoints Ctrl+shift+f9

    All interrupts Ctrl+alt+break

    Stop Debugging Shift+f5

    Restart (Debug) ctrl+shift+f5

    Show Next Statement ALT + (number key)

    Statement F11

    Process F10

    Jump out of Shift F11

    Run to Cursor at CTRL+F10

    View Code F7

    11. Other

    View the Form Editor Shift+f7

    Bookmark Window Ctrl+w,b

    Bookmark Toggle Ctrl+k, K; move to next/next bookmark ctrl+k,p/m; cancel all bookmarks Ctrl+b,c

    Replace ctrl+h; replace ctrl+shift+h in file

    Clipboard Loop Ctrl+shift+v

  3. A better window layout

    It is recommended that you simplify the toolbar and add commonly used tools to common toolbars (such as 1, or you can delete the icons on your own infrequently used toolbars (such as 2!).

Visual Studio 2012 Common shortcut keys

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.