Visual code studio hacks and tricks. Illustration of magician with a top hat and vs logo

13 Must-Have Visual Studio (VS) Code Extensions for Front-End Developers

As a front-end design engineer, I’ve always strived to be more efficient in writing code: better, faster, cleaner. Visual Studio Code is my editor of choice (and knowing it is practically a requirement at Revelry, as we often pair-program using the built-in Live Share feature).

Whether you’re writing CSS or a full-blown Elixir application, leveraging automation in your work can save hours of time each week. Start by asking yourself: “How much time do I spend each day doing X?” There is probably a VS extension or tool out there that can help you automate / optimize that task.

What Are the Best VS Code Extensions?

There are tons of Visual Studio Code extensions out there, but how do you choose the best ones? I encourage you to explore and play. In the meantime, here are 13 VS Code extensions I rely on to speed up my workflow.

1. SCSS-Lint

If you write a lot of CSS then you probably care about the quality of your code. I’ve long been a fan of CSS linters. Revelry even built a linting robot to assist us with such tasks. The beauty of SCSS-lint is that your settings file, .scss-lint.yml, can be either globally or project-based. You can use this extension to lint CSS right in the VS Code problems panel.

Vs code extension demo
Learn more about scss-lint here.

2. Alphabetical Sorting

When it comes to fixing lints, the one rule that continuously needs fixing is PropertySortOrder: true, meaning that all CSS should be alphabetized. After mapping this extension to a shortcut (E.g. ctrl, a), you can perform this action in less than a second.

Vs code alpha sorting gif
Learn more about alphabetical sorting here.

3. Emmet

Emmet, now built right in, is the VS Code expansion tool you can’t live without. In addition to Emmet’s sophisticated code expansion, you can also wrap Individual lines with Emmet code snippets:

For more info, check out Chris Coyer’s tutorial on this method.

Bonus Tip

Try typing “lorem” TAB to fill in “Lorem Ipsum” placeholder text.

Emmet gif
Learn more about Emmet here.

4. Auto Rename Tag

This simple extension does one thing: it auto renames paired HTML/XML tags. This is especially helpful on tags that wrap extensive amounts of content.

Auto rename tag
Learn more about Auto Rename Tag here.

5. Change Case

This doesn’t sound like much, but when you combine the Change Case extensions with shortcuts, it becomes a handy tool for switching between all cases. E.g. Change a sentence into lowercase, then kebab case.

Change case shortcuts
Learn more about Change Case here.

6. Rainbow Brackets

Find that missing tag with ease by color-coding every bracket set in your environment.

Rainbow-brackets
Learn more about Rainbow Brackets here.

7. VS Code Great Icons

Organize your environment by applying an appropriate icon set to visually identify files by type.

Vscode great icons
Learn more about Great Icons here.

8. GitLens

Take control of your projects by bringing the power of Git right into VS Code. View complete commit history, compare files, view branches, or even look at who committed code and when with line blame. GitLens is especially helpful when dealing with merge conflicts. To learn more about GitLens, check out GitLens in the VS Code Marketplace.

Git lens visual code extension
Learn more about GitLens here.

9. Import Cost

This extension displays the import size of the package you are importing right inside the code editor. 

Import-cost
Learn more about Import Cost here.

10. Peacock

Change the color of your workspace. Ideal when you have multiple VS Code instances and you want to identify which is which.

Vscode peacock-windows
Learn more about Peacock here.

11. Settings Sync

What good is the perfect setup if it’s not backed up? “Synchronize settings, snippets, themes, file icons, launch, keybindings, workspaces, and extensions across multiple machines using GitHub gist.”

Vscode settings sync
Learn more Setting Sync here.

12. Write Good Linter

Your markdown needs to be better. Just because you’re writing in markdown, doesn’t mean you have to sacrifice grammar. Improve your writing with this must-have extension.

Write-good-linter vs code extension
Learn more about Write Good Linter here.

13. Placeholder Images

Services like unsplash.it and placehold.it are extremely useful. Now you can save time by adding placeholder images right from within VS Code.

Placeholder images extension
Learn more about Placeholder Images here.

All the VS Code Extensions!

That’s a basic overview of VS Code extensions I’m currently using to increase efficiency, but I’m finding new ones every day. No seriously, I recently discovered Save Without Format. There are always new and better ways to work. If I ever find myself struggling with the same task, I need to stop and ask myself, “Is there a better way to do this?” or more appropriately, “Is there a VS Code extension for this?”

Visual Studio Code Extension Resources:

We're building an AI-powered Product Operations Cloud, leveraging AI in almost every aspect of the software delivery lifecycle. Want to test drive it with us? Join the ProdOps party at ProdOps.ai.