Jsformat Plug-in

Source: Internet
Author: User
Tags sublime text

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.