


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:
- Start VS Code
-
shift cmd p
Open the command panel and entershell command
- Click to confirm
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
Multi-line editing is supported in many development tools because it has many application scenarios , and very efficient.
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
The Command Panel for VS Code makes VS Code fully accessible with just the keyboard.
shift cmd P will bring up the command panel, giving you access to all the features of VS Code.
- cmd P
will allow you to navigate to any file or symbol by entering its name Symbol
- ctrl tab
will take you to the last set of files opened
- shift cmd P
will take you directly to the editor command
- shift cmd O
will allow you to navigate to a specific symbol in the file
- ctrl g
will allow you to navigate to a specific line in the file
Shortcut keys
Shortcut keys often put a burden on the user’s memory, but if they are used frequently, integrate them into For your own habits, the next step is to improve efficiency.
Navigation shortcut keys
-
shift cmd F
Search -
shift ctrl G
Source code management -
cmd shift D
Run panel cmd shift Properties
- cmd j
Use the terminal, question, output, debug console to switch the bottom panel that opens
Common shortcut keys
-
alt Z
Toggle automatic line wrapping. If the lines in the file are long and you need to see everything without formatting each line.
cmd F Search the current file
- alt shift left
/
alt shift right Select by word -
-
cmd down
/
cmd up Move the cursor to the end/beginning of the current file -
cmd left
/ - cmd right
Move the cursor to the end of the current line
alt left
/ - alt right
Move the cursor word by word
ctrl -
/ - ctrl shift -
Back and forward
shift ctrl cmd left
/ - shift ctrl cmd right
Expand or shrink block selection
F12
/ - cmd click
Jump to definition
Editing shortcut key -
cmd ##/
shift up
alt down
/- alt up
- Move up and down one line
- /
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.
No one can reach a thousand miles without taking small steps. Perhaps for a small amount of operations, the changes it brings cannot be felt. However, if in the development process of a large project, the changes brought by a tool The impact will be highlighted. -
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 Circle , share daily useful information, and you can get it by sending "J" A large number of learning materials, covering Python e-books, tutorials, database programming, Django, crawlers, cloud computing, etc. Or go to the Programming Learning Network to learn more about programming technology.
For more knowledge about VSCode, please visit: vscode tutorial!
The 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!

2022年了,该学会用VSCode debug了!下面本篇文章手把手带大家会习VSCode debug,希望对大家有所帮助!

本篇是VSCode配置文章,手把手教大家怎么在VSCode中配置使用 Geant4 和 Root,希望对大家有所帮助!

本篇文章扒拉一下vscode Prettier的选项,总结分享16个让你的代码变漂亮的属性,希望对大家有所帮助!

“工欲善其事,必先利其器!”,vscode作为前端开发的重要工具,其插件能大幅提升战斗力,精心收集12个插件,总有几款你还未曾拥有。

VSCode中如何开发uni-app?下面本篇文章给大家分享一下VSCode中开发uni-app的教程,这可能是最好、最详细的教程了。快来看看!

VScode中怎么开发置C/C++?怎么配置C/C++环境?下面本篇文章给大家分享一下Windows系统下VScode配置C/C++环境图文教程,希望对大家有所帮助!


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SublimeText3 Linux new version
SublimeText3 Linux latest version
