TOP 10 VsCode Extensions for web developers
Tags: webdev, vscode, react, javascript
Published: 2021-10-16 17:42:41

## Advantages of extensions
Visual Studio Code is widely used nowadays for writing software. It is highly extensible and there are a lot of contributors that create useful extensions for it, to give this editor **superpowers**. It’s not a joke, you can really speed up your development with these tools and enhance the contribution with teammates.
Here is my top 10 extension that you should try in Vs Code:

## Video
If you prefer to watch a video instead of reading, you can check out the video that I made on the topic [on my YouTube channel](https://www.youtube.com/channel/UCicOwFWkuMX0ddFaKCc_E5Q):

{% youtube 3QDtJhMskYE %}

## The toplist of VsCode extensions
### 10. [Gitlens](https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens)
![Gitlens](https://raw.githubusercontent.com/eamodio/vscode-gitlens/main/images/docs/revision-navigation.gif)
GitLens is an open-source extension that combines the capabilities of Git and VsCode. One of the best features of this extension, is the ability to visualize code authorship via Git blame annotations and code lens. You can also navigate in the history of a file back and forth to see the changes that were made on it. With the current-line blame you have the ability to click on a single line in the code and you can see the last commit that modified it and you also get a link to the pull request that introduced that change. Overall a really useful tool if you use git as your version control system.
### 9. [Live Server](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer)
![Live server](https://github.com/ritwickdey/vscode-live-server/raw/master/images/Screenshot/vscode-live-server-animated-demo.gif)
Oh I really wish this extension existed when I started to learn web development. It spins up a light nodejs server and serves your html file and all assets from the given directory. On top of that any saved changes you make to your website will be reflected immediately in the browser, which gives a really fast and enjoyable developer experience. You can find this functionality in tools for modern frameworks and libraries like Angular and React, but with this extension you can have the same functionality in any web development project.
### 8. [Import Cost](https://marketplace.visualstudio.com/items?itemName=wix.vscode-import-cost)
![Import Cost](https://miro.medium.com/max/1400/1*quov3TFpgG2ur7myCLGtsA.gif)
You know that feeling when you look at npm’s website and see a cool package, install it immediately and import it into your project. So do I, the problem is that we often don’t think of the overhead that it can cause. This is why this little extension is so important. It enables you to track the size of the imported packages and libraries, so you can control the amount of code size that you import. Especially in web development, you should mind every single byte you import as they will negatively affect the load speed of your site, may harm user experience and even SEO rankings.
### 7. [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode)
Prettier is an opinionated code formatter, which you can set up according to your preferences. It just simply formats your code, and it is really beneficial to have a consistent formatting and styling across your code, because it can save you a lot of time, especially when you collaborate with other developers. You can use Prettier plugins to further enhance the capabilities of this extension, and you can also make it format your code automatically when you save a file.
### 6. Icons
![Icons](https://raw.githubusercontent.com/vscode-icons/vscode-icons/master/images/screenshot.gif)
This is not a specific extension rather a collection of extensions. If you install an icon extension VsCode will show little icons before your directory names and filenames. Every file extension will have it’s custom icon which makes it 10 times easier to navigate in the code and find the file or folder that you searched for. Even directories can have their specific icons based on their names and purpose. My go-to option is Material Icon Theme, but there are other really cool ones like [vscode-icons](https://marketplace.visualstudio.com/items?itemName=vscode-icons-team.vscode-icons), [Simple Icons](https://marketplace.visualstudio.com/items?itemName=LaurentTreguier.vscode-simple-icons), [Material Theme Icons](https://marketplace.visualstudio.com/items?itemName=PKief.material-icon-theme). Find out which one suits you the most.
### 5. [MarkDown all in one](https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one)
![Mardown all in one](https://github.com/yzhang-gh/vscode-markdown/raw/master/images/gifs/section-numbers.gif)
Writing documentation is part of the developer job, whether you like it or not. The most commonly used markup to write documentations or even blog posts is markdown. Markdown all in one makes this process more enjoyable by providing useful shortcuts, autocomplete and live-preview features. It really speeds up documentation writing, so you can get back to developing new features much faster.
### 4. [Better Comments](https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments)
![Better comments](https://github.com/aaron-bond/better-comments/raw/master/images/better-comments.PNG)
Better comments help you write more human-friendly, readable comments. Comments help you understand your own and others' code. This extension helps to visually organize your comments, so it will be much more digestible. You can categorize your annotations to highlighted text, errors and warnings, questions, strikethrough and TODO. With these formatted annotations being visually separated you won’t miss out on any must-read comments.
### 3. Snippets
This is again not a single extension but a collection of extensions. Using code snippets is a really good way to save time during development and increase productivity. For example if you use react and install the [ES7/React/redux/GraphQL/React-native snippet](https://marketplace.visualstudio.com/items?itemName=dsznajder.es7-react-js-snippets) you can simply type “rfc” and hit enter to import React and create a functional component. You can also find code snippet extensions for angular, vue, python, html and so on.
### 2. [Path intellisense](https://marketplace.visualstudio.com/items?itemName=christian-kohler.path-intellisense)
![Path intellisense](https://i.giphy.com/iaHeUiDeTUZuo.gif)
Path intellisense is a great tool which makes it easier to work with files. It autocompletes filenames, and can be really useful if you work with lots of node modules or files in general.
### 1. [Auto Rename Tag](https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-rename-tag)
![Auto rename tag](https://github.com/formulahendry/vscode-auto-rename-tag/raw/HEAD/images/usage.gif)
This is a must-have extension for web developers. As the name suggests, it automatically renames the second tag if the first one is modified and vice versa. In bigger projects where you have nested tags and elements manual update can be difficult and tedious. And the great thing is that it works with JSX so you can use it with React too!

## Where you can learn more from me?
I create education content covering web-development on several platforms, feel free to 👀 check them out.

I also create a newsletter where I share the week's or 2 week's educational content that I created. No bull💩 just educational content.

🔗 Links:
* 🍺 Support free education and [buy me a beer](https://ko-fi.com/adamnagy)
* 💬 Join our [community on Discord](https://discord.gg/GuxmcEgAjB)
* 📧 Newsletter [Subscribe here](https://www.getrevue.co/profile/dev_adamnagy)
* 🎥 YouTube [Javascript Academy](https://www.youtube.com/channel/UCicOwFWkuMX0ddFaKCc_E5Q)
* 🐦 Twitter: [@dev_adamnagy](https://twitter.com/dev_adamnagy)
* 📷 Instagram [@javascriptacademy](https://www.instagram.com/javascriptacademy/)