On Windows: Shift + Alt + F
On Mac: Shift + Option + F
On Linux: Ctrl + Shift + I
Original answer How do you format code in Visual Studio Code (VSCode)?
I'm adding it here because when I was looking for it I found your post before the other one. Hope it helps.
Answer from manuelbcd on Stack OverflowVideos
On Windows: Shift + Alt + F
On Mac: Shift + Option + F
On Linux: Ctrl + Shift + I
Original answer How do you format code in Visual Studio Code (VSCode)?
I'm adding it here because when I was looking for it I found your post before the other one. Hope it helps.
Be aware that if you have the setting
JSON > format: Keep Lines
enabled (the default is disabled), that a one-liner JSON file (or any JSON that has multiple key/values on the same line) will not be formatted as you wish. The file might not change at all until you disable the Keep Lines setting and re-format.
There are a couple I've tried, but they either aren't what I need or aren't updated anymore... JSON Editors I've tried:
JSON Editor (and a lot of forks of this repo)
JSON Tree Editor
JSON
What's your favorite JSON editor?
want to view a huge .json file (to be precise, .jsonl) in read-only mode(if possible). A write stream to that file hasn't been closed yet, and a process running on my pc is constantly writing to it. I tried sublime text to open the file, but it seems to force a refresh every time whenever a chunk is written to the .jsonl. In contrast, vsc doesn't refresh as long as I keep focus.
I'm not trying to edit it literally, so it would be nice if it was optimized for read-only.