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 https://github.com/dzhibas/SublimePrettyJson.git 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!

One thought on “pretty json format in Sublime in 60 seconds

Leave a Reply

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