6 VS Code Extensions That Give You Superpowers 🦸‍♂️
Tags: vscode, productivity
Published: 2020-01-30 13:10:21

As a web developer, you spend most of your day in front of your IDE. My choice for this is Microsoft's [Visual Studio Code](https://code.visualstudio.com/). One of the great things about it is, that there are many extensions that you can just install on the IDE, and many of them could make your life a whole lot easier.

Here are some of my favorite extensions, that sometimes make you feel you have __superpowers, loaded right into your code editor__.

# GitLens

👉 [GitLens at VS Code marketplace](https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens)

![GitLens](//images.ctfassets.net/r1crnaxclhxs/5vFcq84bkNPi2HOCMcPIIZ/cf3dd400b25e905791618819b7ea8048/gitlens.png)

When you work with Git (which you should) in a team, questions about the author of a specific piece of code arises. "I have no idea what's going on here, and I'd like to speak with the author of it to clarify things".

Well, that is one thing that GitLens does for you... in-line. There are many more features such as code heatmaps, powerful commit/compare/stash/history commands, and rich sidebar views for repository, file history, compare, etc.

> __🦸‍♂️ Superpower it gives you__: You can look into the soul of your repository right from the comfort of your code editor.

# Better Comments

👉 [Better Commends at VS Code marketplace](https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments)

![Better Comments](//images.ctfassets.net/r1crnaxclhxs/2pgO6gcpc1KAgT1s4ppLSg/66617d2d28b6d780697cc53c5751c3f4/better-comments.png)

With long files with many comment sections, it's helpful to have a color distinction between different comment types such as Todo, Important, Highlighted, Question. This extension adds this intuitive color coding to your editor - zero configuration required.

> __🦸‍♂️ Superpower it gives you__: Gives you eagle-sight for must-see comments.

# Prettier - Code formatter

👉 [Prettier - Code formatter at VS Code marketplace](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode)

If not using a code formatter, chances are you produce or can't find bugs because of wrong indention on a daily basis. Having your code clean and well-spaced/indented is good for the developer's peace of mind and working in a team.

Prettier formats your code in a way you can customize. For example:
- Identions should be spaces with a width of 4
- Use a space between brackets and it's content
- Code lines should not be longer than 80 characters
- Transform double-quotes into single-codes
- Automatically add semicolons to end of lines

> __🦸‍♂️ Superpower it gives you__: Gives you the power to convert your messy code into a unified, beautiful code with a single snap of a finger (no gauntlet required).

# Quokka.js

👉 [Quokka at VS Code marketplace](https://marketplace.visualstudio.com/items?itemName=WallabyJs.quokka-vscode)

![Quokka.js](//images.ctfassets.net/r1crnaxclhxs/725pgOhgfFTrEhqnmSIkP8/d285edde7c6747b4ff7be727b2ac2ce2/quokka.gif)

Before knowing this extensions, I opened the Chrome Developer Tools if I wanted to quickly try something in JavaScript. Quokka gives you a scratchpad for trying JavaScript code, without even leaving your editor.

> __🦸‍♂️ Superpower it gives you__: Ability to create a safe bubble to try your code without affecting the outside world.

# Bookmarks

👉 [Bookmarks at VS Code marketplace](https://marketplace.visualstudio.com/items?itemName=alefragnani.Bookmarks)

If you work on larger files where you need to switch from one place to another, and need to switch around (e.g. in Vue.js if you write on the JavaScript and template) you'd have to scroll (and not find immediately) the other parts you are working on.

Bookmarks lets you set a bookmarks per line of code, so you can switch to the next important line pretty quickly.

> __🦸‍♂️ Superpower it gives you__: Teleportation to the next relevant line of code in zero-time.

# ESlint

Writing JavaScript code is easy because it's a forgiving language (most of the times). But there are mistakes, wrong uses, oversights that the engine does not complain about, but which should not be made.

ESlint (as the most popular JavaScript linter) in VS Code warns you about syntax errors, suspicious constructs, style errors, and other mistakes before executing the code. It is highly configurable and can help you be a better developer.

> __🦸‍♂️ Superpower it gives you__: Gives you spidy-sense about bad code while typing it.


# Bonus: REST Client

👉 [REST Client at VS Code marketplace](https://marketplace.visualstudio.com/items?itemName=humao.rest-client)

![REST client](//images.ctfassets.net/r1crnaxclhxs/5E0BAJpTmQnh0uLNKWV8J2/f6cb517df3d123ef5011a87788b2bb1e/rest-client.png)

*Does not give you superpowers, but is a very handy tool in your belt nonetheless.*

When you write backend, chances are you are exposing an API for the backend to consume. Sometimes you just want to make a quick request to the API without having to start Postman (or another REST API client).

This extension lets you do this with a quick write up in an empty file, and off you go. The response appears as split-screen on another tab. It even lets you save snippets for requests you make more frequently.

# Summary

There are many great extensions out there and this is just the tip of the iceberg. If you are curious, check out the [Visual Studio Code Marketplace](https://marketplace.visualstudio.com/vscode) for more amazing extensions.


*Photo by [Esteban Lopez](https://https://unsplash.com/@exxteban?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText "Esteban Lopez On Unplash") on Unsplash*