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 OverflowWhat is your favorite JSON editor extension?
VS Code Extension - Best approach for extending JSON - Stack Overflow
What JSON formatter does Visual Studio Code use to format JSON? - Stack Overflow
Any good JSONL viewer and editor extensions?
Recommend cool extensions here 👇
Videos
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.
I'm doing a bunch of LLM evals for my work where everything is JSONL format.
Is there a good plugin that lets me view the data as a table and edit it? None of the ones in the marketplace have screenshots.