Hello everyone! 💙
In this article, I will discuss some of the Visual Studio code extensions I find helpful as a web developer. These Vs. Code extensions will assist you in working faster and being more productive.
let's get started 💃
What is Vs. Code Extension?
Vs. Code extensions let you add languages, debuggers, and tools to your installation to support your development workflow. Vs. Code's rich extensibility model lets extension authors plug directly into the Vs. Code UI and contribute functionality through the same APIs used by Vs. code.
How to Download Vs. Code Extensions
You can browse and install extensions from within Vs. code. Bring up the extensions view by clicking on the extensions icon in the activity bar on the side of Vs. code or the View: Extensions command (Ctrl+Shift+X).
This will show you a list of the most popular Vs. Code extensions. Click the install button to download any Vs. Code extension of your choice.
Check out this article to know more about downloading and installing Vs. Code extensions
Top Vs. Code Extensions for Web Developers
Here is a list of Vs. code extensions that will make your life as a web developer a lot easier:
The live server extension provides a live preview of your web application. It provides a live preview right within the editor.
This extension makes your work easier as it enforces auto-reload. It displays your code results on your web browser without refreshing the page. You don't have to save your work and refresh the browser every minute to see results.
To Use Prettier:
- Click on the extension icon on Vs. code
- Search and download prettier
- Go to settings or press
,to open the settings tab after downloading prettier
- Use the settings search bar to look for
- To make prettier your default formatter, scroll down to
Editor: Default formatter. Select
prettier - code formatterfrom the list of alternatives on the drop box menu
- Scroll to
Enable Editor: format on saveand Toggle the checkbox to enable it. When you do this, prettier will format your code when you press
Son your code sheet.
- Scroll to
Enable Editor: format on pasteand toggle the checkbox to enable it. You don't have to arrange your code by yourself when you copy and paste codes. Press
S, and prettier will take care of it.
To customize prettier:
- Click settings
- Search for prettier
- Click on the
prettier: single quoteif you want just single quotes and not double-quotes. This option is handy when working with a team, as it allows everyone to use the same number of quotations
There are several ways to customize prettier. For more information, go to the prettier settings tab.
This extension makes the development time faster by autocompleting file names. You type the name of the files in statements, and it will search and give you suggestions.
Code Time is an open-source plugin for automatic programming metrics and time tracking.
It tracks your development and provides you with valuable stats. It tells you how many hours you spend coding. It is a helpful extension to keep track and see your progress.
This extension helps you take beautiful screenshots of your code.
To take a screenshot of your code:
Open the command palette (ctrl + shift + p on windows) or (cmd + shift + p on mac).
Search for polacode and select polacode.
Highlight the part you want to screenshot, copy and paste the code on the displayed screen and press the polacode icon to save it on your device.
Auto Rename Tags
This extension allows you to rename both opening and closing tags at once. When you change the starting tag, it will change the closing tag, making the renaming of tags easier.
Px to rem
This extension helps you to convert px to rem and rem to px. You don't need to do mathematical conversions by yourself.
All you need to do is:
Highlight the 20px in
alt + Zkeys to convert from Px to rem.
Press and hold the
alt + Zkeys to convert from rem to Px.
The problem with this extension is that it only uses the standard size: 16px. All conversions you make using this extension will be divided by 16px.
VS Code Icons
This extension adds a set of icons to each of the files and folders in the Explorer view. It makes the editor look more colorful.
Image Preview shows image preview in the gutter and on hover. You see the image preview when you hover over the
Colorize creates a colorful background for each color in CSS to help you visualize them. It works whenever you type in color on the border, CSS variables, text shadow, etc.
When you enter
color: red in your CSS code sheet, for example, it creates a red background where you typed red.
These Vs. Code extensions will make your life easier as a web developer. If you have questions or helpful extension suggestions, drop them in the comments. I will attend to them shortly.
If you found this article helpful, please like and share it ❤️.
That's all for today! 😁 You reached the end of the article 😍.
Top comments (12)
It seems that Bracket Pair Colorizer is now deprecated due to improvements recently made in VSC core: henceforth settings such as
"editor.guides.bracketPairs": trueare suitable enough.
Oh! I will update the article asap. Thanks for Reading Chief ❤️
There is brackets pair colorize 2
True, but specified as unmaintained in the marketplace.
Is there any alternative? brackets pair colorizer 2 is deprecated too
No more extension is really needed to supersede these extensions, as VS Code has now native features for this. Take a look to the October 2021 release of Visual Studio Code to see how to set up brackets to fit your needs.
Auto Rename Tags is no longer necessary, that comes with VSCode now. You can either use F2, or add this to your settings:
Same happens with Bracket Pair Colorizer, but that was explained already by other comment.
I will make corrections Asap. Thanks for Reading ❤️
It works only for HTML or Handlerbars.
You should crosspost this to community.vscodetips.com :)
I will do that... Thanks for Reading Chief ❤️
You should also check out blox. It contains a whopping 1500 ui code snippets for different frameworks