Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>JSON FormatNew to Visual Studio Code? Get it now.
JSON Format

JSON Format

Ramon Zwiers

|
7,654 installs
| (0) | Free
Formatting for JSON files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

JSON Format

A VS-Code extension for subjective formatting of JSON files.

Usage

Default Formatting Hotkey (eg. ctrl + alt + f)

Note: Make sure you have selected this Extension as a default formatter for JSON files.

Formatted Example

{
    "VariableA": 
    [
        {
            "VariableB": "ValueB"
        },
        {
            "VariableC": "ValueC"
        }
    ],
    "VariableB": "ValueB",
    "VariableC": 
    {
        "VariableD": 
        [
            "Value1",
            "Value2"
        ],
        "VariableE": 
        {
            "VariableF": "ValueF",
            "VariableG": 
            [
                {
                    "VariableH": "ValueH"
                },
                {
                    "VariableI": "ValueI"
                }
            ]
        }
    }
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft