Reputation: 126
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 VSCode
Upvotes: 0
Views: 827
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