In short
You'll spend hundreds of hours in your code editor. Twenty minutes of setup now, with auto-formatting, a few good extensions and some shortcuts, saves you hours of fiddling later.
VS Code is a free code editor most web developers use. A good setup with formatting, a few extensions and keyboard shortcuts makes writing and fixing code much faster.

Think of it like this
Setting up your kitchen counter
A good cook arranges the counter before cooking: knives on the left, spices in reach, the chopping board clean. They don't search for the salt mid-recipe. VS Code is your counter. Put the tools you use every day within reach, and you can focus on cooking, not hunting.
The big ideas
What you need to know
Install and open a folder
Download VS Code from code.visualstudio.com. Always use File > Open Folder on your project folder, not single files, so the editor sees the whole project.
Few, useful extensions
Start with Prettier (formatting), ESLint (catches JS mistakes) and Live Server (auto-reloading preview). Add more only when you need them.
Format on save
With Prettier set as the default formatter and Format On Save turned on, every save tidies indentation and quotes for you.
Learn shortcuts
Ctrl+P opens files, Ctrl+Shift+P runs any command, Ctrl+/ comments lines, Alt+Up/Down moves lines, Ctrl+` opens the terminal. On Mac use Cmd.
How it works
A first-day setup
- 1
Install
Install VS Code and tick 'Add to PATH' on Windows so the code command works.
- 2
Extensions
Install Prettier, ESLint and Live Server from the Extensions panel.
- 3
Settings
Open settings.json and add the lines below.
- 4
Try it
Open a project folder, make index.html, right-click and choose Open with Live Server.
See it in code
Walk through the code
1{2 "editor.defaultFormatter": "esbenp.prettier-vscode",3 "editor.formatOnSave": true,4 "editor.tabSize": 2,5 "editor.wordWrap": "on",6 "files.autoSave": "onFocusChange"7}1/3Prettier becomes the formatter and runs every time you save.
Your user settings.json. Open it with Ctrl+Shift+P, then 'Preferences: Open User Settings (JSON)'.
Save yourself the pain
Common mistakes
Oops
Installing twenty extensions on day one.
Do this instead
Too many slow the editor and confuse you. Start with three and add one only when you feel a real need.
Oops
Opening single files instead of the project folder.
Do this instead
Open the folder. Then search, the terminal and extensions all work across your whole project.
Your mission
Set up your editor
Quick check
Which VS Code shortcut lets you search and run any command by name?
Go deeper
- 1Install Prettier and turn on format on save so your code is always tidy.
- 2Learn five shortcuts: quick open, command palette, multi-cursor, find in files and toggle terminal.
- 3Install the Live Server or a similar extension to preview HTML pages as you edit.
More topics at this stop
Stuck on this topic? Ask an Insider
Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.