DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Cover image for Top VS Code Extensions For Web Developers
Cess
Cess

Posted on • Updated on • Originally published at cesscode.hashnode.dev

Top VS Code Extensions For Web Developers

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).

  • Click on the extension icon on Vs. code:
    extensions-view-icon.png

  • 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:

1.
Live Server

live server.PNG

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.

lives.gif

2.
JavaScript (ES6) Code Snippets

This extension contains code snippets for JavaScript in ES6 syntax. To speed up your javascript coding, use Javascript ES6 code snippets.

javascript es6 code snippets.PNG

3.
Prettier

This extension performs the formatting of the javascript, CSS, and HTML. It tidies up the code and makes it readable every time you save the changes.

prettier.PNG

To Use Prettier:

  • Click on the extension icon on Vs. code
  • Search and download prettier
  • Go to settings or press Ctrl + , to open the settings tab after downloading prettier
  • Use the settings search bar to look for format
  • To make prettier your default formatter, scroll down to Editor: Default formatter. Select prettier - code formatter from the list of alternatives on the drop box menu
  • Scroll to Enable Editor: format on save and Toggle the checkbox to enable it. When you do this, prettier will format your code when you press Ctrl+ S on your code sheet.
  • Scroll to Enable Editor: format on paste and toggle the checkbox to enable it. You don't have to arrange your code by yourself when you copy and paste codes. Press Ctrl + S, and prettier will take care of it.

To customize prettier:

  • Click settings
  • Search for prettier
  • Click on the prettier: single quote if 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.

4.
Path Intellisense

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.

path intelisense.PNG

5.
Code time

Code time.PNG

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.

code time2.PNG

6.
Polacode

polacode.PNG

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.

pola.gif

7.
Auto Rename Tags

autorename tag.PNG

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.

rename.gif

8.
Px to rem

px to rem.PNG

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 Font-size: 20px

  • Press alt + Z keys to convert from Px to rem.

  • Press and hold the alt + Z keys 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.

px to .gif

9.
VS Code Icons

vs code icons.PNG

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.

20210906_010837.gif

10.
Image preview

image preview.PNG

Image Preview shows image preview in the gutter and on hover. You see the image preview when you hover over the <img> tag.

image preview.gif

11.
Colorize

Colorize

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.

colorize example

Conclusion

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)

Collapse
 
gizmecano profile image
P. Mergey

It seems that Bracket Pair Colorizer is now deprecated due to improvements recently made in VSC core: henceforth settings such as "editor.bracketPairColorization.enabled": true and "editor.guides.bracketPairs": true are suitable enough.

Collapse
 
cesscode profile image
Cess

Oh! I will update the article asap. Thanks for Reading Chief ❀️

Collapse
 
talorlanczyk profile image
TalOrlanczyk • Edited on

There is brackets pair colorize 2

Collapse
 
gizmecano profile image
P. Mergey

True, but specified as unmaintained in the marketplace.

Thread Thread
 
rmulon17 profile image
rmulon17

Is there any alternative? brackets pair colorizer 2 is deprecated too

Thread Thread
 
gizmecano profile image
P. Mergey

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.

Collapse
 
lukeshiru profile image
Luke Shiru

Auto Rename Tags is no longer necessary, that comes with VSCode now. You can either use F2, or add this to your settings:

"editor.linkedEditing": true
Enter fullscreen mode Exit fullscreen mode

Same happens with Bracket Pair Colorizer, but that was explained already by other comment.

Cheers!

Collapse
 
cesscode profile image
Cess

I will make corrections Asap. Thanks for Reading ❀️

Collapse
 
rajcep profile image
RajceP

It works only for HTML or Handlerbars.

Collapse
 
ben profile image
Ben Halpern

You should crosspost this to community.vscodetips.com :)

Collapse
 
cesscode profile image
Cess

I will do that... Thanks for Reading Chief ❀️

Collapse
 
harishash profile image
Haris#

You should also check out blox. It contains a whopping 1500 ui code snippets for different frameworks

Need a better mental model for async/await?

Check out this classic DEV post on the subject.

β­οΈπŸŽ€ JavaScript Visualized: Promises & Async/Await

async await