JSON Beautify
A small VS Code extension to beautify, format, and minify JSON.
Features
- Beautify the whole document, or just the selected text.
- Minify JSON into a single compact line.
- Configurable indentation (spaces or tabs).
- Right-click menu entry + keyboard shortcut.
- Clear error message when the JSON is invalid.
Commands
Open the Command Palette (Ctrl/Cmd+Shift+P) and run:
JSON Beautify: Beautify
JSON Beautify: Minify
Shortcut
Ctrl+Alt+J (Windows/Linux) / Cmd+Alt+J (Mac) — Beautify
Settings
| Setting |
Default |
Description |
jsonBeautify.indentSize |
2 |
Number of spaces used for indentation. |
jsonBeautify.useTabs |
false |
Use a tab character instead of spaces. |
| |