VS Code settings.json Cookbook/Format on save and paste

Enable automatic formatting helpers.

Section: Editor Settings

Format on save and paste

json
json
{
  "editor.formatOnSave": true,
  "editor.formatOnPaste": 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 Editor Settings
Add rulers
Visual guides for line length.
OpenIn sheetjsonsame section
Disable minimap
Simplify the editor view.
OpenIn sheetjsonsame section
Hide build artifacts
Exclude generated directories from explorer and search.
OpenIn sheetjson1 tag match
Increase terminal scrollback
Keep more terminal history.
OpenIn sheetjson1 tag match
Auto save after delay
Persist files automatically.
OpenIn sheetjson1 tag match
Per-language formatter override
Use different defaults for specific file types.
OpenIn sheetjson1 tag match