Summary of commonly used shortcut keys in vs2015

1. Go back to the previous cursor position/advance to the next cursor position

1) Go back to the previous cursor position: use the key combination "Ctrl + -";

2) Advance to next cursor position: "Ctrl + Shift + - ".

2. Copy/cut/delete entire lines of code

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

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

3) If you want to delete an entire line of code, just move the cursor to the line and use the key combination "Ctrl+L" to complete the cut operation without selecting the entire line.

3. Revocation/Anti-Revocation

1) Undo: use the key combination "Ctrl+Z" to undo;

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

4. Search forward/backward

1) Use the key combination "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 key combination "Ctrl+I" and "Ctrl+Shift+I" to locate the search results back and forth, and the search results will be highlighted.

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

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

5. Box selection

Use the key combination "Shift+Alt+Arrow keys (or mouse)" to complete the box selection. Box selection allows you to select lines and columns of code at the same time. This is very convenient to delete certain codes in batches.

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

1) Key combination "Ctrl+Enter": insert a blank line above the current line;

2) Key combination "Ctrl+Shift+Enter": Insert a blank line below the current line.

7. Positioning at the beginning and end of the line

1) home key: locate the beginning of the current line;

2) end key: locates 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 key combination "Shift + Home";

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

9. Invoke Smart Tips

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

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

10. Call parameter information prompt

For some functions with large function bodies, it is a troublesome thing to easily confirm the usage of parameters inside the function. At this time, you can place the cursor on the parameter name, and then press the key combination "Ctrl+Shift+Space", and the place where the parameter is used will be highlighted.

11. Quickly switch windows

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

12. Quickly hide or show the current snippet

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

13. Generate the solution

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

14. Jump to a specified line

1) Method 1: key combination "Ctrl+G";

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

15. Comment/Uncomment

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

2) Uncomment: key combination "Ctrl+K+U".

16. Fullscreen/Exit fullscreen

Use the key combination "SHIFT + ALT + ENTER".

17. Definitions and References

1) Jump to Definition: F12;

2) Find all references: use the key combination "Shift+F12".

18. Find and Replace

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

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

19. Case conversion

1) Convert to lowercase: use the key combination "Ctrl+U";

2) Uppercase: Use the key combination "CTRL + SHIFT + U".

20. Debugging related

1) Debug (start): F5;

2) Debug (restart): use the key combination "Ctrl+Shift+F5";

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

4) Debug (statement by statement): F11;

5) Debug (process by process): F10;

6) Set a breakpoint: F9.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325171280&siteId=291194637