VS Code extensions for frontend developers
A short list covers it: ESLint, Prettier, a live preview, and a few helpers like Error Lens and GitLens. Here's what each extension does, who publishes it, and what VS Code already does without any extension.

You've just installed VS Code. You open the Extensions view and find thousands of add-ons, each one promising to make you faster. You install twenty. Now the editor feels slow, and two of them fight over how your file should look.
The VS Code extensions frontend developers need fit in a short list: ESLint to catch mistakes, Prettier to format code, a live preview to see your page as you edit, and a few helpers like Error Lens, Code Spell Checker, and GitLens. Many things people install extensions for, like Emmet, debugging, and Git, are already built in. Here's what each extension does, who publishes it, and what you can skip.
What is a VS Code extension?
An extension is an add-on that gives VS Code a new feature. It works like an app on a phone. The phone already has a camera and a clock, and you add apps only for what's missing.
To install one, open the Extensions view with Ctrl+Shift+X (Cmd+Shift+X on a Mac). Search for the name, check the publisher, and click Install. A blue check mark next to the publisher means they've proven they own their website's domain.
Check before you click. Extensions have the same permissions as VS Code itself, so they can read your files. Stick to publishers you trust. New to VS Code itself? Setting up your tools installs it step by step.
Which VS Code extensions should frontend developers install?
Each of these is on the Visual Studio Marketplace under the publisher shown, and each does one job well.
| Extension | Publisher | What it does |
|---|---|---|
| ESLint | Microsoft | Underlines likely mistakes in JavaScript and TypeScript |
| Prettier - Code formatter | Prettier | Lays out your code the same way every time |
| Live Preview | Microsoft | Shows your page inside VS Code as you type |
| Live Server | Ritwick Dey | Opens your page in a browser and reloads it on save |
| Error Lens | Alexander | Prints each error's message right on its line |
| Code Spell Checker | Street Side Software | Flags misspelled words, even inside names |
| GitLens | GitKraken | Shows who last changed each line, and when |
| Tailwind CSS IntelliSense | Tailwind Labs | Suggests Tailwind class names and shows their CSS |
You don't need all eight. ESLint and Prettier help in any JavaScript project. Pick one of the two live previews. Add Tailwind CSS IntelliSense only if you use Tailwind.
ESLint for catching mistakes
ESLint is a linter: a tool that reads your code and warns you about likely mistakes before you run it. The extension shows those warnings as squiggly underlines while you type.
function greet(name) {
const message = "Hello, " + nmae;
console.log("Hi");
}
With ESLint's recommended rules, both problems here get underlined. The typo nmae isn't defined anywhere, and message is created but never used.
The extension uses the ESLint installed in your project, so the project needs ESLint and a config file. Linting with ESLint sets up both.
Prettier for formatting
Prettier is a formatter. It rewrites the layout of your code, like spaces, line breaks, and quotes, without changing what the code does. Coding style and naming shows a before and after.
To format every file when you save it, open the Command Palette (Ctrl+Shift+P, or Cmd+Shift+P on a Mac). Run Preferences: Open User Settings (JSON) and add these two lines:
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
The first line makes Prettier your formatter, and the second runs it on every save. If your project has Prettier installed, the extension uses that copy. If not, it uses one that comes with the extension.
ESLint and Prettier do different jobs. Prettier decides how code looks, and ESLint finds code that's probably wrong.
A live preview for your pages
VS Code can show a simple page by itself. Right-click an HTML file and choose Open in Integrated Browser.
Some pages need a local server: a small web server on your own computer, so the page loads from a localhost address like a real site. A page that loads data with fetch, for example, may not work when opened straight from a file. MDN's guide to local servers explains why.
Live Preview from Microsoft runs that server and shows the page inside VS Code, refreshing as you type. Live Server from Ritwick Dey opens the page in your browser instead. Click Go Live in the status bar, and the page reloads each time you save.
Error Lens, Code Spell Checker, and GitLens
Error Lens prints each error and warning at the end of its line. You see the message without hovering over a squiggle. It works with every tool that reports problems in VS Code, ESLint included.
Code Spell Checker catches typos in names, comments, and text. It splits a name like userNmae into its words, so it can flag Nmae. A misspelled variable is a real bug, and this finds it before you run anything.
GitLens adds detail to the Git support VS Code already has. Click a line to see who changed it, when, and in which commit. Its core features are free, and some extra views need a paid plan.
If you write Tailwind, add Tailwind CSS IntelliSense too. Tailwind CSS is a set of small ready-made classes, like p-4 for padding, that you put straight in your HTML. The extension suggests class names as you type and shows the CSS behind each one when you hover. Tailwind CSS in Next.js uses it in a real project.
What does VS Code do without extensions?
Before you install anything, know what's already there. These features come built in:
- Emmet. Type a short abbreviation, pick it from the suggestions, and VS Code writes the full HTML.
- A debugger. Pause JavaScript on any line and look at every variable. It works with Node.js and with pages in Chrome and Edge. Debugging in the browser teaches the same skills with DevTools.
- Git. The Source Control view stages, commits, and pushes with clicks. It needs Git installed on your computer first.
- Help with HTML, CSS, and JavaScript. You get suggestions as you type, and closing tags are added for you.
- Linked tags. Turn on the
editor.linkedEditingsetting. When you rename an opening tag, its closing tag changes too.
Here's Emmet at work:
<!-- You type: ul>li.item*3 -->
<ul>
<li class="item"></li>
<li class="item"></li>
<li class="item"></li>
</ul>
In the abbreviation, > means "inside", .item adds a class, and *3 means "three times". So one short line becomes a list with three items.

How many extensions should you install?
Fewer than you think. Every extension is more code running inside your editor, and a few good ones beat a long list. Watch for these mistakes:
- Two formatters at once. If two extensions both format on save, they undo each other's work. Pick one with
editor.defaultFormatter. - Unknown publishers. An extension can do anything VS Code can do. Check the name, the publisher, and the check mark.
- Extensions you never use. Disable or uninstall them from the Extensions view.
- Teammates left guessing. List your project's extensions in a
.vscode/extensions.jsonfile. VS Code then suggests them to anyone who opens the project.
{
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
}
Each entry is an extension ID: the publisher's ID, a dot, and the extension's name. You'll find it on the extension's page.
Where to go next
No VS Code yet? The code editor on CompleteFrontend runs HTML, CSS, JavaScript, TypeScript, and React in your browser, with nothing to install. When you want your own setup, Setting up your tools walks you through it. Then save every version of your work with Git and GitHub for beginners, and share it with how to deploy a website for free.


