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

JSON: Set Syntax and Format

Joey Cheng

|
450 installs
| (1) | Free
Sets active file syntax to JSON then formats it, all in one command.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

[VS Code] JSON: Set Syntax and Format

Provides a single command to set active tab's language to JSON and format it.

Demo GIF

Why?

As a dev, I often find myself having to human-parse random JSON (from server logs, Chrome network inspects, etc) as part of everyday debugging processes.

Usually, I have to run 2 separate commands - set language to JSON, then format document. I've always wanted an extension which does exactly these two steps as one. Finally, after many months, I decided to build one which works!

Release Notes

1.0.0

Initial release! 🎉

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