Common shortcut keys of Visual Studio

Source: Internet
Author: User
Fix code errors inline.

CTRL +. (period) keys

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 + -".

 

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.

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.

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.

 

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.

 

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.

Comment/cancel comment

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

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

Case-sensitive Conversion

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

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

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.

Common shortcut keys of Visual Studio

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.