27 words, 1 min read

To format JSON on save in VS code, just add ths to your settings.json file:

{
"[json]": {
"editor.formatOnSave": true
},
"[jsonc]": {
"editor.formatOnSave": true
},
}