10 Must-Have VSCode Extensions for Web Development
Tags: webdev, vscode, tooling, extensions
Published: 2023-05-10 12:22:32

Install these powerful VSCode extensions to significantly improve your productivity during web development.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ve1x8f58mw5u4yopj8tl.png)

Visual Studio Code is one of the most widely-used source code editors out there, with over 136k stars on GitHub. Its popularity comes about due to its lightness, flexibility, open-source nature, simplicity, and extensibility.

Speaking of extensibility, VSCode has thousands of extensions you can install to ramp up your developer productivity and save yourself from mundane tasks. They are all available in the Visual Studio Code marketplace and the vast majority of them are completely free.

This article looks at 10 powerful Visual Studio Code extensions that significantly improve the web development experience. Example usage and installation links are provided for every one of them.

**1. Prettier**
Prettier is a useful tool that automatically formats your code using opinionated and customizable rules. It ensures that all your code has a consistent format and can help enforce a specific styling convention in a collaborative project involving multiple developers.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x5hmvc54dd1pv7rq8d3a.png)

The Prettier extension for Visual Studio Code brings about a seamless integration between the code editor and Prettier, allowing you to easily format code using a keyboard shortcut, or immediately after saving the file.

Install- [click](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
)

**2. JavaScript Booster**
This extension upgrades Visual Studio Code with code actions to perform common refactoring tasks that occur when programming with JavaScript.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cg0mbql68wvhhpjbwl7w.png)

They are dozens of code actions that it can carry out, including: replacing an if...else statement with a ternary operator:

Install- [click](https://marketplace.visualstudio.com/items?itemName=sburg.vscode-javascript-booster
)

**3. ESLint**
ESLint is a tool that finds and fixes problems in your JavaScript code. It deals with both code quality and coding style issues, helping to identify programming patterns that are likely to produce tricky bugs.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6r4e0n12w1eqzqegek0q.png)

The ESLint extension for Visual Studio Code enables integration between ESLint and the code editor. This integration allows ESLint to notify you of problems right in the editor.

Install- [click](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint
)

**4. GitLens**
GitLens is another powerful extension that helps you take full advantage of Git source control in Visual Studio Code.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1prv4ht9iw8mw2c8ob9o.png)

GitLens displays views containing essential repository data and information on the current file, such as file history, commits, branches and remotes.

Install- [click](https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens)

**5. Live Server**
The Live Server extension for VSCode starts a local server that serves pages using the contents of files in the workspace. The server will automatically reload when an associated file is changed.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yuyh8c6z3bbgm7l2h5gk.png)

Install- [click](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer
)

**6. CSS Peek**
The CSS Peek Extension lets you quickly view the CSS style definitions for various class names and IDs assigned in HTML.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0zgc4ic8nfqq59nms87b.png)

There are three ways to use CSS Peek:

You can hold down the Ctrl key and hover over a class name or ID to peek at its definition.
You can use a keyboard shortcut to open a persistent definition window that displays the CSS definition of a class name or ID.
You can use a keyboard shortcut to navigate to where the definition is located in its CSS file.

Install- [click](https://marketplace.visualstudio.com/items?itemName=pranaygp.vscode-css-peek#:~:text=Peek%3A%20load%20the%20css%20file,the%20symbol%20(%20Ctrl%2Bhover%20)
)
**7. Intellisense for CSS Class Names in HTML**
This extension can work hand in hand with CSS Peek, it provides code completion for the HTML class attribute from existing CSS definitions found in the current Visual Studio Code workspace.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n6sfce1cou0lxcfzk9lr.png)

You’ll appreciate the benefits of this extension when using third-party CSS libraries containing hundreds of classes.

Install- [click](https://marketplace.visualstudio.com/items?itemName=Zignd.html-css-class-completion)

**8. JavaScript (ES6) Code Snippets**
As the name suggests, this is an extension that comes fully loaded with heaps of time-saving code snippets for JavaScript, in ES6 syntax.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ur24omo7h495588z93jp.png)

Here’s a demo where the imp and imd snippets from this extension are used to quickly import two modules with ES6 syntax.

Install- [click](https://marketplace.visualstudio.com/items?itemName=xabikos.JavaScriptSnippets)

**9. Visual Studio Intellicode**
Artificial Intelligence continues to increase worker productivity in various jobs, and developers are not left out. IntelliCode is a tool that produces smart code completion recommendations that make sense in the current code context. It does this using an AI model that has been trained on thousands of popular open-source projects on GitHub.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wo9jpjqbgr1rrg685lp3.png)

When you type the . character to access an object method or fields, IntelliCode will suggest a list of members that are likely to be used in the present scenario. The items in the list are denoted using a star symbol.

Install- [click](https://marketplace.visualstudio.com/items?itemName=VisualStudioExptTeam.vscodeintellicode)

**10. VSCode Icons**
Icon packs are available to customize the look of files of different types in Visual Studio Code. They enhance the look of the application and make it easier to identify and distinguish files of various sorts.

VSCode Icons is one the most popular icon pack extensions, boasting a highly comprehensive set of icons and over 11 million downloads.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cn0n87gnd0em38nipy2y.png)

It goes beyond file extension differentiation, to provide distinct icons for files and folders with specific names, including package.json, node_modules and .prettierrc.

Install- [click](https://marketplace.visualstudio.com/items?itemName=vscode-icons-team.vscode-icons)

**Conclusion**
So we’ve gone through 10 essential extensions that aid web development in Visual Studio Code. Install them now to boost your developer productivity and raise your quality of life as a web developer.