VSCodeHow to use? What are some weird tricks? In order to give everyone a clearer understanding of VSCode, this article will share with you some of its efficient uses (weird tricks). I hope it will be helpful to you!
Different development tools can capture their own group of loyal users and supporters.
VS Code, Eclipse, IDEA, atom... which development tool is better? There has always been such a debate.
VS Code has become a popular development tool in recent years and has gradually been welcomed by more developers.
The reason why it is so popular is inseparable from its continuous innovation and breakthroughs.
Even so, many users still find VS Code difficult to use.
This is not difficult to understand. If a student who has used tool A suddenly migrates to tool B, even if it is already perfect, he can still find a lot of faulty points.
One of the reasons is due to usage habits, and the other is that developers don’t know enough about this new tool.
But one thing should be clear. As a popular development tool at the moment, VS Code also supports many excellent functions that other development tools have.
In order to let everyone understand VS Code more clearly, today I will introduce to you some of its efficient usage. [Recommended learning: "vscode introductory tutorial"]
Integrated terminal
In VS Code, Able to open the terminal directly. This eliminates the need to switch windows and avoid wasting time whether you are debugging code or executing terminal command line tools.
To use the VS Code terminal, you need to install it first. The installation steps are very simple and only require the following steps:
shift cmd p
Open the command panel and enter shell command
In this way, the development of the VS Code integrated terminal is completed.
Batch renaming
100 times in the code, it will obviously be very troublesome to manually modify it one by one.
Use the shortcut keyshift cmd l to select all the names that appear in the code and rename them in batches.
Multiple selection mode
alt click Each click will add a new cursor.
alt cmd down or
alt cmd up will insert the cursor below or above respectively.
Command Panel
shift cmd P will bring up the command panel, giving you access to all the features of VS Code.
will allow you to navigate to any file or symbol by entering its name Symbol
will take you to the last set of files opened
will take you directly to the editor command
will allow you to navigate to a specific symbol in the file
will allow you to navigate to a specific line in the file
Shortcut keys
Navigation shortcut keys
shift cmd F
Searchshift ctrl G
Source code managementcmd shift D
Run panelcmd shift Properties
Use the terminal, question, output, debug console to switch the bottom panel that opens
Common shortcut keys
alt Zcmd F Search the current file
/
alt shift right
cmd D
cmd down/
cmd up
cmd leftMove the cursor to the end of the current line
alt leftMove the cursor word by word
ctrl - Back and forward
shift ctrl cmd leftExpand or shrink block selection
F12Jump to definition
cmd ##/alt down
/
shift alt up
Copy the row or selection and paste below or above the row or selection
Conclusion
If you remember these efficient ways to use VS Code, you will find that it is much more efficient than the operations you were accustomed to before.
Through these efficient operations, VS Code allows you to focus on the coding itself without being affected by tool-level obstacles that affect development efficiency.
The above is all the content shared this time. If you think the article is not bad, welcome to follow the official account:
Python Programming Learning CircleThe above is the detailed content of [Compilation and Sharing] Commonly used and efficient tips in VSCode (wonderful skills and tricks). For more information, please follow other related articles on the PHP Chinese website!