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
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.