Home>Article>Development Tools> sublime text3 format json
SublimeText3 has a beautiful user interface and extraordinary functions, so how does sublimetext3 format json? Below, the sublime tutorial column will introduce how to format json in sublime text3. I hope it will be helpful to you!
Install install package
cmd + `
Enter
import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())
Install pretty json
cmd + shift +p install package pretty json
or
cd /Users/xixicat/Library/Application Support/Sublime Text 3/Packages git clone https://github.com/dzhibas/SublimePrettyJson.git
Formatting
ctrl+cmd+j
Related introduction:
##json
JSON (JavaScript Object Notation, JS Object Notation) is a lightweight data exchange format. It is based on a subset of ECMAScript (the js specification developed by the European Computer Association) and uses a text format that is completely independent of programming languages to store and represent data. Simplicity and clear hierarchical structure make JSON an ideal data exchange language. It is easy for people to read and write, and it is also easy for machines to parse and generate, and effectively improves network transmission efficiency. Sublime Text is a code editor (Sublime Text 2 is a paid software, but it can be tried indefinitely), and it is also a HTML and Advanced text editor for prose. Sublime Text was developed by programmer Jon Skinner in January 2008. It was originally designed as a Vim with rich extension functions. Sublime Text has a beautiful user interface and powerful features such as code thumbnails, Python plug-ins, code snippets, etc. Key bindings, menus and toolbars can also be customized. The main features of Sublime Text include: spell check, bookmarks, complete Python API, Goto function, instant project switching, multi-selection, multi-window and more. Sublime Text is a cross-platform editor that supports Windows, Linux, Mac OS X and other operating systems.The above is the detailed content of sublime text3 format json. For more information, please follow other related articles on the PHP Chinese website!