Reproduced Visual Studio shortcut keys

Source: Internet
Author: User

Statement:

The original address is: Visual Studio common shortcut keys

Common shortcut keys for Visual Studio (ii)

Similar articles recommended:

More efficient use of visual Studio (i)

More efficient use of visual Studio (ii)

Body:

Recently saw many colleagues use VI to develop Ruby,python scripts. Edit code all with the shortcut key, high efficiency.

In fact, visual Stuido also has a lot of shortcut keys, skilled use, can greatly improve work efficiency. This article describes some of the most common shortcut keys
The GIF animated picture used in this article is recorded by the Licecap tool.

Read Catalogue 1:
    1. vs Shortcut Key Tutorials
    2. Delete or cut a line (Ctrl + X)
    3. Formatting the entire document (CTRL + K, CTRL + D)
    4. IntelliSense (Ctrl + J)
    5. Collapse All Methods (Ctrl+m,ctrl+o)
    6. Collapse or expand the current method (Ctrl+m,ctrl+m)
    7. View function parameters (Ctrl+k, ctrl+p)
    8. Note (ctrl+k, CTRL + C)
    9. Insert a blank line below the cursor (ctrl+shift+enter)
    10. Insert Code Snippet (ctrl+k, Ctrl+s)
vs Shortcut Key Tutorials

Http://www.shortcutworld.com/en/win/Visual-Studio_2010.html

Http://www.dofactory.com/ShortCutKeys/ShortCutKeys.aspx

Delete or cut a line (Ctrl + X)

You do not need to select any text to cut a line, most commonly used to delete a row. Deleting a row can also be used Shift+delete

Formatting the entire document (CTRL + K, CTRL + D)

Used to format the entire document
The specific operation is: Hold down the CTRL key, press the K key, and then press the D key.
Formatting the entire document can also be used (Ctrl+e, ctrl+d), one hand is done, more convenient

IntelliSense (Ctrl + J)

Collapse All Methods (Ctrl+m,ctrl+o)

Expand All Methods (CTRO+M,CTRL+L)

Collapse or expand the current method (Ctrl+m,ctrl+m)

View function parameters (Ctrl+k, ctrl+p)

Memory method: Ctrl+p = Parameter

Note (ctrl+k, CTRL + C)

Anti-Comment The selected code is (Ctrl+k, ctrl+u)

Memory method: Ctrl + c = Comment selected text

Ctrl+u = Uncomment selected text

Insert a blank line below the cursor (ctrl+shift+enter)

Insert blank line above cursor yes; (ctrl+enter)

This shortcut is useful when editing an XML file.

Insert Code Snippet (ctrl+k, Ctrl+s)

Inserting Code Snippets

Note: The actual operation, hold down the CTRL key, press the K key first, then press the S key.

Read Catalogue 2:
    1. Press the TAB key twice
    2. Fallback to the previous position of the cursor Ctrl + MINUS SIGN
    3. Automatically add a using namespace
    4. Inserting automatic properties
    5. Find All References   Shift+f12
    6. Show or hide the tab mark (Ctrl + R, CTRL+W)
    7. Character to lowercase ctrl+u

Press the TAB key twice

Pressing the TAB key twice is useful, for example, when we write a for, a foreach loop, or a try, and a bind event method, you can quickly insert a snippet by pressing the TAB key twice

Automatically bind the event method by pressing the TAB key twice

Fallback to the last position of the cursor: CTRL + MINUS sign

This is very useful, huh?

Automatically add a using namespace

Shortcut keys are: Ctrl +.[ DOT], You can also use the mouse point or CTRL+SHIFT+F10

Inserting automatic properties

Enter prop, then press two times TAB key

Find All References Shift+f12

Action: Speak the cursor on the word, then press SHIFT + F12

Shows or hides the tab mark Ctrl + R, CTRL+W

Character to lowercase ctrl+u

Character to uppercase Ctrl+shift+u

Reproduced Visual Studio 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.