Formatting
Format your JSON for readability or compact output.
What it does
- Pretty-print JSON with indentation
- Minify JSON into a compact format
- Handles large files efficiently
How to use
Pretty format
- Shortcut: Ctrl + Shift + F
- Formats JSON with indentation
Compact / Minify
- Shortcut: Ctrl + Shift + M
- Removes whitespace and line breaks
Toolbar
Use the FORMAT dropdown in the toolbar:
- Format
- Compact
Large files
For large documents:
- Formatting runs in the background
- May take slightly longer
- Editor remains responsive
When to use formatting
- Before reviewing changes
- Before comparing (diff)
- Before exporting
Tips
- Format before using diff for cleaner comparison
- Use compact mode for copying or exporting
Limitations
- Invalid JSON cannot be formatted
- Extremely large files may take longer
Related
Last updated on