Sublime Forum

Sublime Plugins

#1

Is it possible to prettify json in sublime text?
thanks.

0 Likes

#2

You can use the built-in reindent, but that’s probably not what you’re looking for. See packagecontrol.io for available json formatting plugins.

0 Likes

#3

Thank you.
I was trying to use ‘Format (Pretty Print) JSON’ (Ctrl+Alt+j), but that did not work at first. None seemed to work. But then I figured, JSON uses double quotes and I used single, as from python dictionary. And then it highlighted what else was not quoted (as True, False for example). So now it works, quite nice as I see it.

0 Likes

#4

Question: how does one find the error in json text with sublime?

Pretty JSON (Ctrl+Alt+j) just highlights the entire pasted text, not very helpful.

0 Likes