oContis Studio
oContis Studio

Reputation: 126

VSCode settings for json file - remove braces formatting

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

Upvotes: 0

Views: 827

Answers (1)

Mark
Mark

Reputation: 181060

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.

Upvotes: 1

Related Questions