This article is designed to help people who use VS Code develop faster. Not everyone knows shortcuts and doesn’t have the time to study them, so here I will list my favorite shortcuts and feel free to add them in the comments section if you find them useful
Find files quickly with CTRL + P
Shortcut key: CTRL + P
- This shortcut allows you to quickly find and navigate to a file
Quickly find the code CTRL + F
Shortcut key: CTRL + F
- Find the current file where the code is located, and can be directly replaced and modified globally
Open/close the sidebar with CTRL + B
Shortcut key: CTRL + B
- Open and close workspaces, quickly closing them when not needed
Quick line feed CTRL + Enter
Shortcut key: CTRL + Enter
- Use this shortcut, the cursor can also be directly wrapped in the middle of the code, and directly positioned to the next line, very easy to use!!
Indent the character Shift + TAB
Shortcut key: Shift + TAB
- You can simply select a block of code to indent one character instead of a line by line.
Locate the number of rows CTRL + G
Shortcut key: CTRL + G
- When an error occurs, you can quickly locate the number of lines where the error occurs and enter it directly
Move up and down code Alt + arrow key up and down
Shortcut key: Alt + up/down
- Select the code fragment by pressing Alt and arrow keys can be directly up and down, easy to modify the code
Quick selection code CTRL + D
Shortcut key: CTRL + D
- Select the code by pressing CTRL + D can quickly select the same code by pressing one at a time, can be selected and modified at the same time
Quickly copy a line Alt + Shift + up/down
Shortcut keys: Alt + Shift + up/Down
- Select the number of lines of code and press CTRL + Shift + up/Down to quickly copy
Delete line CTRL + X
Shortcut key: CTRL + X
- This shortcut is exactly cut away, but I use it more for delete, and delete works
conclusion
This is the end of today’s shortcut sharing, should be updated sometime later, and the corresponding GIF
There are a lot of shortcuts out there to explore, but I only use a few of them. See you later