Package Control
The package control is a plugin for managing Sublime Text 2 plugins. It is also the first plugin to install after loading.
Open ctrl+`
It first and enter it in the ST2 console that opens:
import urllib2,os; pf=‘Package Control.sublime-package‘; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),‘wb‘).write(urllib2.urlopen(‘http://sublime.wbond.net/‘+pf.replace(‘ ‘,‘%20‘)).read()); print ‘Please restart Sublime Text to finish installation‘
After the installation is complete, you should be able to see the options under the menu Preferences -> Package Settings
.
JsFormat
The code used to format JavaScript can then be cmd + shift + p
found Format: javascript
.
then change the text format to JSON in the lower left corner
It's ready to go. CTRL +a Select all and CTRL + ALT + F is available
Jsformat Plug-in