pretty json format in Sublime in 60 seconds

By | October 9, 2018

If you are working with json and want to view it in a pretty format within Sublime, you can install an extension very quickly. The long way on a Mac is to navigate to ~/Library/Application Support/Sublime Text 3/Packages and run this command from a terminal: git clone Restart Sublime and the open up some unformatted json and hit command+ctrl+j.  It literally takes 1 minutes.   An even faster way is to use the package control. Hit command+shift+p to bring up a pop up text field and type “install package control”. This places the file “Package Control.sublime-package” into ~/Library/Application Support/Sublime Text 3/Installed Packages. If you have this already, then just hit command+shift+p and type “package control: install package”, and then type “pretty” and select Pretty JSON. Then restart Sublime. Done! This should take 30 seconds!

6 thoughts on “pretty json format in Sublime in 60 seconds

  1. Johan

    Installed package control.

    Pressed command + shift + P and searched for Pretty JSON, but couldn’t find.

    Why in the world is this functionality not included by default?

    1. David

      Between first and second action is another:
      command+shift+P -> “package control: install package” -> “Pretty JSON”


Leave a Reply

Your email address will not be published. Required fields are marked *