Skip to content
jshacks.dev
Tooling

Configure VS Code settings for a team

Share VS Code settings and recommended extensions with a team by committing a .vscode folder with settings.json and extensions.json.

1 min read
Summarize in AI

A committed .vscode folder gives everyone the same formatter, the same lint behavior and a prompt to install the right extensions.

.vscode/settings.jsonJSON
{
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.formatOnSave": true,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": "explicit"
  },
  "typescript.tsdk": "node_modules/typescript/lib",
  "files.exclude": { "**/.git": true }
}
.vscode/extensions.jsonJSON
{
  "recommendations": [
    "dbaeumer.vscode-eslint",
    "esbenp.prettier-vscode",
    "editorconfig.editorconfig"
  ]
}

typescript.tsdk points the editor at the project's TypeScript, not the one bundled with VS Code, so editor errors match tsc. extensions.json makes VS Code offer to install what is missing when someone opens the folder. See VS Code's recommended extensions docs.

Commit only settings that apply to the project. Keep themes, fonts and key bindings in personal settings. Add .vscode/* to .gitignore with exceptions for these two files, so personal launch files stay out.

Taggedvs code
Share

More snippets

Tooling

Create a Vite project from a template

Create a Vite project from a template with npm create vite, choose the vanilla-ts or react-ts template and see which files it generates.

1 min read
Tooling

Share an ESLint config across packages

Share one ESLint 9 flat config across workspace packages by exporting an array from a package and spreading it into each package's eslint.config.js.

1 min read

Get new posts by email

We send one email when a new post is published. No spam.

Unsubscribe in one click. No spam, ever.