Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>JSON Compact Formatter/PrettifierNew to Visual Studio Code? Get it now.

JSON Compact Formatter/Prettifier

Irakli Nadareishvili

|
5,248 installs
| (7) | Free
Prettify JSON Without Wasting Space
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Prettify JSON Without Wasting Space

JSON "prettifiers" produce unnecessarily long JSON...

Sounds familiar? This VS Code extension does the right thing by formatting your code snippets in a compact, but still pretty form.

Usage:

  1. Select a JSON text in any file type,
  2. Invoke command runner (with Ctrl+Shift+P on Windows or Cmd+Shift+P on Mac)
  3. Type command name: Format: Compact Pretty JSON

Enjoy.

Command Installed:

Format: Compact Pretty JSON

Contributing

  • Guide to writing extensions in Javascript: https://blog.logrocket.com/writing-vs-code-extensions-in-javascript/
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft