Format JSON in Sublime Text 4

I like Sublime Text 4 as a fast and versatile editor. Unfortunately, I always forget the command to format JSON files. This is mainly because it takes more steps than one single key combination:

  1. CTRL + SHIFT + P to open the Command Palette
  2. Start to type “pretty”:
    Select the Format JSON entry
  3. Select “Pretty JSON: Format JSON”

Be aware, this only works if you installed the Pretty JSON package.

2 thoughts on “Format JSON in Sublime Text 4”

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.