Format files automatically when saved.
Section: Settings, Debugging, and Git
Enable format on save
json
json
{
"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 Settings, Debugging, and Git