VS Code plugins are indeed a developer's right hand, but to be honest, many people only use one percent of their functionality. Take my own experience as an example, before the default settings have been stupidly used, until one day to see a colleague's VS Code interface, it is like opening the door to a new world! Those seemingly simple combination of plug-ins, can save at least 30% of repetitive workload, which can be more cost-effective than every day overtime to stay up late.
Why is the VS Code plugin so amazing?
This matter has to start from the design concept of VS Code. When Microsoft first built it, it left enough room for expansion, developers can build like blocks, according to their respective needs to add different functional modules. For example, the front-end commonly usedPrettierrespond in singingESLintThe combination of the two swords, one responsible for formatting code and the other responsible for syntax checking, can eliminate 80% code specification problems at the stage of keyboarding.
One particularly interesting phenomenon: many development teams will include plugin configuration in the list of mandatory installation of the project. Last year, when I was involved in an open source project, I was required to install theGitLensThe first time I saw this demo, I almost bounced out of my chair - this is the "crime scene investigation" version of code. The first time I saw this demo, I almost bounced out of my chair - isn't this the code version of CSI?
Useful Plugins That Will Make You Call the Insiders Straight Up
When it comes to specific cases, it is impossible not to mentionLive Server. This seemingly simple plugin solves one of the biggest pain points of front-end development - real-time preview. Previously changed the code to manually refresh the browser, now the file is saved, the page automatically refreshed, even F5 do not have to press. Data shows that this real-time feedback can make the development efficiency to improve 20% or so.
There's also a cooler but super useful plugin calledTurbo Console LogIt is specialized for debugging scenarios. By pressing a shortcut key on a selected variable, you can automatically insert a console.log statement with the variable name. Sounds like nothing, but imagine having to manually type console.log dozens of times a day, the number of keystrokes this plugin can save in a year can be imagined.
What's even more amazing is thatCode RunnerThese are plugins that seamlessly connect the IDE to the terminal. You no longer need to switch windows to write a small script, you can just run it in the editor and see the results. Especially when writing Python or Node.js scripts, this instant feedback is a fun multiplier.
The Art of Plugin Combination
The true masters understand the subtleties of plugin combinations. For example, combiningBracket Pair Colorizer(coloring the brackets) andIndent Rainbow(indentation coloring) with the use of the code structure at a glance. I once observed a technical bull's screen, the colorful code blocks like rainbow candy, look complex but debugging up surprisingly fast.
What shocked me the most was a man namedGremlins trackerThe plug-in, it can pull out the code hidden special characters. These characters are difficult to distinguish with the naked eye, but will lead to a variety of bizarre bugs. a colleague used it within a year to find three production environments leading to the crash of the "culprit", that it is a debug artifact is not an exaggeration.
At the end of the day, the beauty of VS Code plugins is that they help you turn repetitive labor into creative work. Many people ask why my development efficiency is higher than theirs, in fact, the secret is hidden in the carefully tuned combination of plug-ins. Of course, plug-ins are not the more the better, find the most suitable for their own workflow, in order to really get twice the result with half the effort.
Comment List (0):
Load More Comments Loading...