VS Code settings.json Cookbook/Per-language formatter override

Use different defaults for specific file types.

Section: Terminal and Language Overrides

Per-language formatter override

json
json
{
  "[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[python]": {
    "editor.formatOnSave": true
  }
}

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Terminal and Language Overrides
Increase terminal scrollback
Keep more terminal history.
OpenIn sheetjsonsame section
Format on save and paste
Enable automatic formatting helpers.
OpenIn sheetjson1 tag match
Hide build artifacts
Exclude generated directories from explorer and search.
OpenIn sheetjson1 tag match
Add rulers
Visual guides for line length.
OpenIn sheetjson1 tag match
Auto save after delay
Persist files automatically.
OpenIn sheetjson1 tag match
Disable minimap
Simplify the editor view.
OpenIn sheetjson1 tag match