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

JSON formatter

Clemens Peters

|
499,387 installs
| (17) | Free
Convert file to file type json and format content.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

JSON Formatting Extension for Visual Studio Code

Just run Format JSON to set the language of the current
file to JSON and format the content in one step.
Also works in new Untitled (not saved) files.

Usage

usage

Background

Before I always did

  1. Cmd + K and then M to complete the command
  2. Type JSON
  3. Hit Enter
  4. Option + Shift + F to format the content

Now it is just Cmd + Shift + P and then Format JSON.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft