Press Cmd+Shift+P → "Extensions: Install from VSIX..."
Select the downloaded file
📖 Usage
Quick Start
Open any .json file
Right-click in the editor
Select "Format JSON" from the context menu
Keyboard Shortcuts
Command
Mac
Windows/Linux
Description
Format JSON
Shift+Alt+F
Shift+Alt+F
Format current JSON file
Minify JSON
Shift+Alt+M
Shift+Alt+M
Minify current JSON file
Validate JSON
Cmd+Shift+V
Ctrl+Shift+V
Validate JSON syntax
Command Palette
Press Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows/Linux) and type:
Format JSON: Format - Beautify JSON
Format JSON: Minify - Compress JSON
Format JSON: Validate - Check syntax
Format JSON: Sort Keys - Sort object keys
Format JSON: Convert to CSV - Export as CSV
Format JSON: Open Advanced Tools - Open WebView interface
Context Menu
Right-click in any JSON file to access:
Format JSON
Minify JSON
Validate JSON
Compare with Another File
⚙️ Configuration
Configure the extension in VS Code settings:
{
// Number of spaces for indentation (default: 2)
"formatjson.indentSize": 2,
// Sort object keys alphabetically (default: false)
"formatjson.sortKeys": false,
// Validate JSON on save (default: true)
"formatjson.validateOnSave": true,
// Format JSON on save (default: false)
"formatjson.formatOnSave": false
}