This is the first day of my participation in the More text Challenge. For details, see more text Challenge
1. Frequently used shortcut keys to improve work efficiency
He that would do a good job must sharpen his tools
Proficient use of shortcut keys can improve our work efficiency, not only in VsCode, toward pure keyboard operation, not only can greatly improve our code efficiency, but also let us look elegant operation, very powerful appearance (pretend to be big guy). Don’t look at more, don’t forget again, repeat the cycle to remember is still CV, focus on practice, practice more, form muscle memory!
Frequently used especially high frequency shortcut keys
Here are some common ones:
shortcuts | Functional specifications |
---|---|
Ctrl + Shift + P, F1 | Show Command Palette Command control-related operations Show Command Palette |
Based on the previous command new Folder | Command to control the creation of folders |
Operate on new file based on command | The command controls new files |
Ctrl + N | The new file NewFile |
Ctrl + TAB | Switching between multiple files quickly |
Ctrl + ‘(the key to the left of 1) | Open the terminal command line Show terminal |
Ctrl + Shift + ` | Create new Terminal |
Ctrl + 1 / 2 / 3 | Focus on the first, second, or third editor group (also suitable for use on the terminal command line) |
Ctrl + E | Quickly open the file, use: 100 Jump to line 100,The @ character Jump to symbol |
Ctrl + P | Quick Open file |
Alt + write/left | Move a line up/down Move a line up/down |
Ctrl + Shift + N | New window/instance |
Ctrl + Shift + W | Close the window/instance. Close window/instance |
Basic Editing
shortcuts | Functional specifications |
---|---|
Ctrl + X | Cut line (Empty Selection) |
Ctrl + C | Copy line (empty Selection) |
Shift+Alt + ↓ / ↑ | Copy line up/down |
Ctrl+Shift+K | Delete line |
Ctrl+Enter | Insert line below |
Ctrl+Shift+Enter | Insert line above |
Ctrl+Shift+\ | Jump to matching bracket |
Ctrl+] / [ | Make an Indent/outdent line |
Ctrl+Home | Go to the beginning of the file |
Ctrl+End | Go to end of file |
Ctrl + write/left | Scroll line up/down |
Alt+PgUp / PgDown | Scroll page up/down |
Ctrl+Shift+[ | Collapse a region |
Ctrl+Shift+] | Unfold an uncollapsed region |
Ctrl+K Ctrl+[ | Collapse all subregions |
Ctrl+K Ctrl+] | Unfold (uncollapse) all subregions |
Ctrl+K Ctrl+0 | Collapse all regions |
Ctrl+K Ctrl+J | Unfold (uncollapse) All regions |
Ctrl+K Ctrl+C | Add line comment |
Ctrl+K Ctrl+U | Remove line comment |
Ctrl+/ | Toggle line comment |
Shift+Alt+A | Toggle block comment |
Alt+Z | Toggle word wrap |
The shortcut keys will still be sorted and updated to the most commonly used ones, so get used to using the keyboard and use it frequently, like Ctrl + C/V
In the next article, we update the efficiency plugin to improve the happiness of code words.
For example, “Magic Bully”, continuously updated, to be continued…