Visual Studio 2013 Common shortcut keys

Source: Internet
Author: User

---restore content starts---

Code selection

1 Area Code Selection

Press SHIFT to select the whole (line) block code, which can be used with four arrow keys (key: Select a single character, the upper and lower key: The current column of the upper and Lower row), Home (the current line), end (current end), PgUp (the current header), and PgDn (the current footer).

2 Word (Word) selection

Ctrl + Shift + arrow keys (left and right) to select entire words at once.

Code removal

1. Ctrl + DELETE key to delete the block to the right of the cursor (whole word or one punctuation)

2, if you want to delete the whole line, the last skill is obviously inconvenient, at this time, press CTRL + L, you can rub a large fireball out, attack effect: Delete the current line.

Code Movement

Alt + direction or down arrow to swap the current line code with the previous line or the next line, such as pressing the arrows in multiple directions, to move up a few lines, or to move the whole block of code.

Roll screen

1. Let the VS code window flip up or down one line

Ctrl + arrow keys: up or down

2, need to turn over the number of rows, with PgUp or PGDN. To go back to the document switch, CTRL + HOME, the end of the document must be CTRL + END.

Method (function) body folding

This is used in conjunction with the "Roll screen" function, but also usually read someone else's code is often used by the operation. Mouse at method definition, Ctrl + M two times

Method (function) body folding. Skill level. 2

Ctrl + M + O Collapse All method bodies of the class where the cursor is located

Method (function) body folding. Skill level. 3

Collapses all classes in the current class file. You know, some people like to define N classes in a class file, one by one, slightly tired. At this point, press CTRL + M + L

Comments

CTRL + K, CTRL + C comments, CTRL + K, CTRL + U anti-comment

View the parameter list

Ctrl + Shift + spaces

View Quick Definitions

Alt + F12

Code reading Navigation

When you look at the code, you often jump to a different class file, and sometimes you want to go back in the order of the jumps, you can press CTRL +-to complete the back operation, Ctrl + Shift +-forward.

Jump to a specified line

Ctrl + G

Reference http://www.cnblogs.com/cxd4321/p/3636225.html

---restore content ends---

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