Home >Development Tools >VSCode >[Hematemesis sorting] Sharing super practical shortcut keys for vscode to improve your work efficiency!

[Hematemesis sorting] Sharing super practical shortcut keys for vscode to improve your work efficiency!

青灯夜游
青灯夜游forward
2022-06-22 16:46:555609browse

This article will share with you some vscode super practical shortcut keys to improve your work efficiency and get twice the result with half the effort. Come and collect it!

[Hematemesis sorting] Sharing super practical shortcut keys for vscode to improve your work efficiency!

Visual Studio Code is a very excellent code editing tool that supports writing in multiple programming languages. Tools are very commonly used. If you want to use them smoothly, you have to remember the shortcut keys, write down the skills, and write code to greatly improve work efficiency and get twice the result with half the effort. [Recommended learning: "vscode introductory tutorial"]

1. Code block comments

Shortcut key: Ctrl /, the cursor is positioned on a single line Single-line comments, select multiple lines and press the shortcut key to create multi-line comments

2. Code indentation

Shortcut keys: Ctrl ] (or Tab key) and Ctrl [ , position the cursor on a single line to indent, select multiple lines and press the shortcut key to comment on multiple lines

3. Quickly copy a line

Shortcut key: Alt Shift Up Press or down key to quickly copy the line where the cursor is positioned. Of course, you can also use Ctrl c and then Ctrl v

[Hematemesis sorting] Sharing super practical shortcut keys for vscode to improve your work efficiency!

4. Select multiple identical Word

shortcut keys: Ctrl d, first double-click to select a word, and then press ctrl d to select the same words in sequence. In this way, it is very convenient to modify the same words at the same time

[Hematemesis sorting] Sharing super practical shortcut keys for vscode to improve your work efficiency!

5. Replace

Shortcut key: Ctrl h, when a page needs to be modified When there is a large amount of the same text, you can use global replacement.

6. Locate a certain line

Shortcut key: Ctrl g. When the page is relatively long, it is convenient to scroll the page up and down. Ctrl g can quickly enter the number of lines. to the specified number of lines.

7. Zoom in and out of the entire editor interface

Shortcut key: Ctrl /-, there are too many codes and the eyes are tired, so you can zoom in to see.

[Hematemesis sorting] Sharing super practical shortcut keys for vscode to improve your work efficiency!

8. Select a block

Shortcut keys: Hold Alt Shift and drag the mouse to select a code Block, delete, or add or subtract codes according to the cursor position

[Hematemesis sorting] Sharing super practical shortcut keys for vscode to improve your work efficiency!

9. Position to the head and tail

Shortcut key: Home/ End locates the beginning and end of the line, and Ctrl Home/End locates the first or last line.

10. Other common shortcut keys

You can also write down other common shortcut keys if you forget them. Ctrl s to save, Ctrl c to copy, Ctrl v to paste, Ctrl x to cut, Ctrl a to select all, Ctrl f to find, Ctrl z to undo, etc.

For more knowledge about VSCode, please visit: vscode tutorial!

The above is the detailed content of [Hematemesis sorting] Sharing super practical shortcut keys for vscode to improve your work efficiency!. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:juejin.cn. If there is any infringement, please contact admin@php.cn delete