Author | Ashutosh Singh
Translator | Bending Moon
[Editor’s note] Because expansion can greatly improve the efficiency of development, Visualstudio Code has become the most popular editor in the developer community. This article introduces the 10 most popular Visualstudio Code extensions in 2021.
Visualstudio Code is the most popular editor in the developer community. One of the reasons is that VSCODE has many extensions, which can improve the efficiency of development.
In this article, we will introduce 10 VSCode extensions that each developer should understand.
1、Auto Rename Tag
Autorename Tag is a VSCode extension for Web developers. As the name suggests, Auto Rename Tag can automatically update another tag when one label is changed:
This extension can be used not only in HTML, but also for React, because React uses JSX:
In the above example, there is only one text in the label, but in the real application, a large number of labels and elements are nested together, and it is very difficult and troublesome to update manual renewal.
2、Bracket Pair Colorizer
This extension can dye the matching brackets in the same color. The large amount of parentheses brought by the components, functions, objects, etc. of the same file are easy to touch:
, for example, code example below:
At first glance, it is difficult to distinguish different code blocks, but the Bracket Pair COLORORIZER extension can color the corresponding brackets, which is convenient for browsing code and reading:
3, code fragment
Code fragment is the best way to save time to improve productivity. This is not an extension, but a variety of expansion of multiple languages.
Below is some popular code fragments expansion:
Angular Snippts (version 11)
ES7 React/Redux/GraphQL/React-Native snippets
Vue 3 Snippets
For example, when creating a new formation in React, the syntax of the input functional component is very cumbersome. Use ES7REACT/Redux/Graphql/React-Native Snippets. Just enter RFC and press Enter to create a functional component.
BetterComments can help you write comments that are convenient for reading.
Clear and easy -to -understand annotations are not only good for those who read code, but also very useful for themselves. Developers often encounter this situation: after a while, it is difficult to read their code. And writing descriptive annotations is good for themselves and teams.
Use Better Comments to extend, you can divide annotations into several categories such as warning, inquiries, waiting, and key points.
Use the following characters after the dual oblique line as a mark:
* Index the focus
! Express errors and warnings
? Express inquiries and questions
// Represents delete
TODO means to do it
5、Markdown All in One
MarkDownall in One can process all Markdown requirements, such as automatic preview, shortcut keys, automatic completion, etc.
Since its release in 2004, Markdown has become one of the most popular tags. Technical authors are widely used by MarkDown to transfer articles, blogs, documents, etc., because it is very light, simple, and can be used on multiple platforms. Its popularity has led to the emergence of many Markdown variants, such as Github Flavored Markdown, MDX, etc.
For example, to add coarse fonts to Markdown, you only need to choose a shortcut key CTRL+B to improve productivity.
descriptive icon can help you distinguish different files and folders. The icon also makes the development process more interesting.
Below is a comparison of two VSCode tabs. One has an icon, and the other is not.
There are many icon extensions to choose from. The popular icon extensions are:
Material Icon Theme
Material Theme Icons
Prettier is a tendency to format the code format. It has obtained more than 38,500 target stars on Github, and is one of the most popular code formators. The consistent code format and style can save a lot of time, especially when cooperating with other developers.
Consider the following code:
This code has many format problems, such as:
Single quotation number and dual quotes mixed
Irregular segmentation usage
The console statement in line 6 is increasingly indented
The figure below demonstrates how to format and repair the above errors:
This extension supports the Prettier plug -in so that you can use the local custom Perstier.
You can also further configure the extension, and it can even be configured to automatically execute when saved.
ImportCost can display the import size in the code. When writing items, it is important to not import too large software packages to avoid damage to the user experience. One of the methods to avoid introducing large software packages is to track the size of the software package at any time.
If the import is too large, Import Cost will display the size with red to warn. You can configure the corresponding size of small, medium and large.
Profileswitcher can be switched in multiple user configurations.
This extension is particularly suitable for content creators, such as technical bloggers, YouTube anchors, etc. You don’t need to change the settings every time you share the VSCode screen, just create a new user configuration.
The figure below demonstrates how to switch between the two users configure the default and the content creation:
gitlens is an open source extension. It adds Git’s function to VSCode.
The best point of this extension is that the author of the code can be visualized through the functions of Git Blame and Code Lens.
Below is more detailed code author’s information:
This is just one of the many functions of Gitlens. Other functions worth mentioning are:
History version of a file throughout a file
Display the author’s information at the end of the line, and will not cause interference to work
Customized status bar, show the last modifier and the date of the current line
This article introduces 10 VSCODE extensions to help you become a better developer and improve productivity.
There are many other VSCode extensions, such as:
Code Spell Checker
Original link: https://blog.logrocket.com/top-10-ds-code-excmeatory
Introduction:The most comprehensive zero -basic learning Python problem | zero -based python that has been learned for 8 months | actual combat project |Learning Python is this shortcut
Quantitative: How much can a fixed investment fund make? | I use Python to analyze the data of 800 funds last year
dry goods:Climbing Douban Short Review, the movie “Later Us” | 38 NBA Best Player Analysis| From the expectations to word of mouth! Tang Tan 3 is disappointing | Laugh at Xinyi Tian Tu Long Ji | Lantern riddles answer king ｜Use Python to make a large number of ladies sketchesMission -Empress is so hot, I use machine learning to make a mini recommendation system movie
Fun:7 7 7 | Jiugongge | Beautiful flower | two hundred lines of Python “Tiantian Cool Run” game!
AI: Robot that can be used as a poem | Give the picture color | Forecast income | Mission -Empress is so hot, I use machine learning to make a mini recommendation system movie
Tools:PDF to Word, easily get the form and watermark! | One -click to save the HTML webpage as PDF!| Goodbye PDF extraction fee! | Use 90 lines to create the strongest PDF converter, Word, PPT, Excel, Markdown, HTML one -click convert | Make a nail low -cost air ticket tip! ｜60 Code made a voice wallpaper switching device every day to see the younger sister!｜
Annual Explosive Copywriting
2). Learn python so fragrant! I made a website with 100 lines of code to help people PS travel pictures and earn chicken legs to eat
3). In the first broadcast over 100 million, the whole network was hot, I analyzed “The Sister of the Wind and Broken Waves”, and discovered these secrets.
5). The 20 python code you must master, short and powerful, with endless use
7).I summarized the 80 -page “Cainiao Learning Python Selected Dried Dry .PDF”, all of which were dry goods
8).Goodbye Python! I want to learn GO! 2500 words depth analysis
9). Discover a licking dog benefits! This Python reptile artifact is too cool, download girls automatically
Read the original text, take a full set of information!