Article From:https://www.cnblogs.com/atuo/p/9967590.html

1.Back to the previous cursor position/forward to the next cursor position
1)Back to the previous cursor position: use the combination key “Ctrl + -“;

2)Go to the next cursor position: “Ctrl + Shift + -“.

2.Copy/cut/delete the whole line of code

1)If you want to copy an entire line of code, just move the cursor to that line and use the combination key “Ctrl + C” to complete the copy operation without choosing the whole line.

2)If you want to cut an entire line of code, just move the cursor to that line and use the combination key “Ctrl + X” to complete the cut operation without choosing the whole line.

3)If you want to delete an entire line of code, just move the cursor to that line and use the combination key “Ctrl + L” to complete the clipping operation without choosing the whole line.

3.Revocation / revocation

1)Undo: Undo operation by using combination key “Ctrl + Z”;

2)Anti-revocation: Use the combination key “Ctrl + Y” to perform the anti-revocation operation.

4.Forward / backward search

1)Use the combination key “Ctrl + I”;

2)Type the text to be searched (move the cursor to the position of the search word input box to start typing);

3)After typing the search text, you can use the combination keys “Ctrl + I” and “Ctrl + Shift + I” to locate the search results before and after, and the search results will be highlighted.

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

[After choosing a word, pressing the combination key “Ctrl + F” can also bring up the search box, and the search results will be highlighted.

5.Frame selection

Use the combination key “Shift + Alt + direction key (or mouse)” to complete the box selection. Box selection allows you to select both lines and columns of code. It’s very convenient to delete some code in batches.

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

1)Combination key “Ctrl + Enter”: Insert a blank line above the current line;

2)Combination key “Ctrl + Shift + Enter”: Insert a blank line below the current line.

7.Locate the beginning and end of the line

1)homeKey: Locate at the beginning of the current line;

2)endKey: Locate at the end of the current line.

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 “Shift + Home”;

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

9.Calling smart prompt

1)Method 1: Use the combination key “Ctrl + J”;

2)Method 2: Use the combination key “Alt+”.

10.Call parameter information prompt

For some functions with larger body, it is difficult to easily confirm the use of parameters within the function. At this point, you can place the cursor on the parameter name and press the combination key “Ctrl + Shif + space”, where the parameter is used will be highlighted.

11.Quick switch window

Use the combination key “Ctrl + Tab” (at this point you can turn on the navigation of the IDE to get a bird’s eye view).

12.Fast hiding or displaying the current code segment

Use the combination key “Ctrl + M, M” (remember: press M twice).

13.Generate solutions

Use the combination key “Ctrl + Shift + B”.

14.Jump to a specified line

1)Method 1: Combination key “Ctrl + G”;

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

15.Comment / cancel comments

1)Note: Combination key “Ctrl + K + C”;

2)Uncomment: Combination key “Ctrl + K + U”.

16.Full Screen Display/Exit Full Screen Display

Use the combination key “SHIFT + ALT + ENTER”.

17.Definition and reference

1)Skip to Definition: F12;

2)Find all references: Use the combination key “Shift + F12”.

18.Find and replace

1)Find: Use the combination key “Ctrl + F”;

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

19.toggle case

1)Turn to lower case: Use the combination key “Ctrl + U”;

2)To capitalize: Use the combination key “CTRL + SHIFT + U”.

20.Debugging related

1)Debug (start):F5;

2)Debugging (restart): Use the combination key “Ctrl + Shift + F5”;

3)Debugging (start executing without debugging): Use the combination key “Ctrl + F5”;

4)Debugging (statement by statement): F11;

5)Debugging (process by process): F10;

6)Set breakpoint: F9.
———————
Author: Lao Fan Lu code
Source: CSDN
Original: https://blog.csdn.net/fanyun_01/article/details/80159958
Copyright Statement: This article is the original article of the blogger. Please attach a link to the blog article for reprinting.

Link of this Article: Summary of VS2017 Shortcut Key Use

Leave a Reply

Your email address will not be published. Required fields are marked *