A default VS Code works, but these five make it faster to read, harder to break and easier to keep clean. Below: what each one does, the install ID, the settings that make it actually work, and the honest catch.
code command must be on your PATH):code --install-extension PKief.material-icon-theme
code --install-extension johnpapa.vscode-peacock
code --install-extension usernamehw.errorlens
code --install-extension aaron-bond.better-comments
code --install-extension esbenp.prettier-vscode
Gives every file and folder its own icon (React, JS, config, tests…), so you find things in a big project at a glance. About 36 million installs.
Ctrl+Shift+P) → Preferences: File Icon Theme → Material Icon Theme.Colours each project window differently, so with three windows open you never type into the wrong project.
.vscode/settings.json of that project. On a team repo, either agree on it or keep that file out of your commit.// .vscode/settings.json (written by Peacock)
{
"workbench.colorCustomizations": { "activityBar.background": "#e8692e" },
"peacock.color": "#e8692e"
}
Prints errors and warnings at the end of the line where they happen, so you don't have to hover over the red squiggle.
Colours comments by the tag you start them with.
| Write | Meaning |
|---|---|
// ! deprecated, don't use | Alert |
// ? should this be public | Question |
// TODO: add tests | To-do |
// * important note | Highlight |
//// old code | Strikethrough (commented-out code) |
Formats your code the same way every time you save: spacing, quotes, line breaks. Installing it alone does nothing; add these two settings.
// File → Preferences → Settings → open settings.json
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
.prettierrc file to the project, so everyone formats alike.