Home > Software design >  VSCode settings for json file - remove braces formatting
VSCode settings for json file - remove braces formatting

Time:12-16

VSCode default autoformatter is formatting .json files with empty objects to a single line, which is not what i want. Basically i try to get away from this:

  "settings": {}

To this:

"settings": {
}

Here is my settings.json file in VSCodeenter image description here

CodePudding user response:

The setting JSON > Format: Keep Lines , if enabled, will do what you want.

Keep all existing new lines when formatting.

It will preserve your newline between the braces upon formatting.

  • Related