VisualStudio
VisualStudio copied to clipboard
VS 2019 - Formats JSON into a single line.
Microsoft Visual Studio Community 2019 Version 16.7.7
What happened
When pasting or formatting JSON file with CTRL+K+D, VS formats/flattens the JSON into a single line.
Steps to Reproduce
- Copy JSON
- CTRL+V in Visual studio (file extension is .json)
- Result: only one line in file (no break lines)
Expected behavior
JSON formatted with \n\r
Screenshots
Visual studio JSON settings:

Logs
Visual studio info export VisualStudioInfo.txt
Visual studio ActicityLog.xml ActivityLog.zip
Anyone?
The Brace positions setting "Compact" is the cause, set it to "Semi-expanded" to get your usual format. Sadly I don't know how to keep arrays in a single line while having normal newline behavior for the rest of the JSON.