Common shortcut keys in Visual Studio 2013

Source: Internet
Author: User

Visual Studio 2013 is a basic and complete set of development tools, including most of the tools required throughout the software lifecycle, such as UML tools, code control tools, integrated development environment (IDE) and so on. In vs 2013, many new features are added to improve the efficiency of developers, such as automatic square brackets and moving the entire line or whole block of code using shortcuts;

Reasonable Use of shortcuts can improve development efficiency. However, Visual Studio provides many shortcut keys, so do we have to know how to use all the shortcut keys? The answer varies from person to person. Personally, in the development process, I only use a few of them, but the work is also doing well. Therefore, this article does not list all shortcut keys, but just summarizes some of the commonly used shortcut keys. I hope you can check them as needed.

Common shortcut keys for vs2013:

1. Return to the previous cursor position/forward to the next cursor position

1) return to the previous cursor position: Use the combination key "Ctrl + -";

2) move forward to the next cursor position: "Ctrl + Shift + -".

2. Copy/CUT/Delete the entire line of code

1) If you want to copy a whole line of code, you only need to move the cursor to this line, and then use the combination key "Ctrl + C" to complete the copy operation without selecting the entire line.

2) If you want to cut a whole line of code, you just need to move the cursor to this line, and then use the combination key "Ctrl + X" to complete the cut operation, without selecting the entire line.

3) If you want to delete a whole line of code, you only need to move the cursor to this line, and then use the combination key Ctrl + L to complete the cut operation without selecting the entire line.

3. Undo/undo

1) undo: Use the combination key "Ctrl + z" to undo the operation;

2) undo: Use the combination key "Ctrl + Y" to undo the operation.

4. search forward/backward

1) press Ctrl + I ";

2) type the text to be searched (move the cursor to the position in the search term input box to start inputting );

3) after you type the search text, you can use the combination key "Ctrl + I" and "Ctrl + Shift + I" to locate the search results. The search results are highlighted.

4) to end the search, press the "ESC" key or click the close button on the right of the search box.

[Supplement] After selecting a word, press Ctrl + F to bring up the search box and the search results will be highlighted.

5. Box Selection

The box selection can be completed by using the combination key shift + ALT + direction key (or mouse. Box selection allows you to select both code rows and columns. This is very convenient for batch deletion of some codes.

6. Insert a row above or below the row where the cursor is located

1) press Ctrl + enter to insert an empty row on the current row;

2) press Ctrl + Shift + enter to insert an empty row under the current row.

7. Locate the beginning and end of the row

1) Home Key: locates the beginning of the current row;

2) end key: locate the end of the current row.

8. Select the code from the cursor to the beginning (end) of the line.

1) Select the code from the cursor to the beginning of the line: Use the combination key "cshift + home ";

2) Select the code from the cursor to the end of the line: Use the combination key "Shift + end ".

9. Insert a code block quickly

Please refer to my other article.

10. Call smart prompts

1) Method 1: press Ctrl + J ";

2) Method 2: Use the combination key "Alt + → ".

11. Call parameter information prompt

For some functions with a large body, it is troublesome to easily confirm the use of parameters within the function. In this case, you can place the cursor on the parameter name and press Ctrl + shif + space to highlight the used parameter.

12. Quick window switch

Use the combination key "Ctrl + TAB" (you can open the IDE navigation to get a bird's eye view ).

13. Quickly hide or display the current code segment

Use the combination key "Ctrl + M, M" (remember to press m twice ).

14. Generate a solution

Use the combination key "Ctrl + Shift + B ".

15. Jump to a specified line

1) Method 1: press Ctrl + G ";

2) Method 2: Click the row number in the status bar.

16. Comment/cancel comments

1) Note: The key combination is Ctrl + K + C ";

2) uncomment: press Ctrl + K + U ".

17. Full Screen Display/exit full screen display

Use the combination key "Shift + ALT + enter ".

18. Definition and reference

1) Jump to definition: F12;

2) Search for all references: Use the combination key "Shift + F12 ".

19. search and replace

1) Search: Use the combination key "Ctrl + F ";

2) Replace: Use the combination key "Ctrl + H ".

20. case-sensitive Conversion

1) lower case: Use the combination key "Ctrl + u ";

2) convert to uppercase: Use the combination key "Ctrl + Shift + U ".

21. debugging problems

1) debug (start): F5;

2) debug (restart): press Ctrl + Shift + F5 ";

3) debugging (start execution without debugging): Use the combination key "Ctrl + F5 ";

4) debugging (Statement by statement): F11;

5) debugging (process by process): F10;

6) set the breakpoint: F9.

Visual Studio 2013 shortcut keys

Shortcut Keys shared by the designer and Editor

These shortcuts are available in the designer and editor.

Common shortcut keys in Visual Studio 2013

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.