Home > Article > Development Tools > Introduction to the installation method of Sublime Text3 and JSON parsing plug-in
The following tutorial column will introduce you to the installation method of Sublime Text3 and JSON parsing plug-in. I hope it will be helpful to friends in need!
2. Enter the registration code and append the registration code collected from the Internet. It is not guaranteed to be available. If it fails, please go out and turn right to find Du Niang and Google. :
----- BEGIN LICENSE ----- sgbteam Single User License EA7E-1153259 8891CBB9 F1513E4F 1A3405C1 A865D53F 115F202E 7B91AB2D 0D2A40ED 352B269B 76E84F0B CD69BFC7 59F2DFEF E267328F 215652A3 E88F9D8F 4C38E3BA 5B2DAAE4 969624E7 DC9CD4D5 717FB40C 1B9738CF 20B3C4F1 E917B5B3 87C38D9C ACCE7DD8 5F7EF854 86B9743C FADC04AA FB0DA5C0 F913BE58 42FEA319 F954EFDD AE881E0B ------ END LICENSE ------
3. Install the JSON plug-in (either direct installation or online plug-in installation)
Download the installation package https://github.com/dzhibas /SublimePrettyJson, decompress to the Packages directory (menu/Sublime Text->Preferences->Browser Packages...), and then restart
3-2. Online plug-in installation Package Control
Press Ctrl ` (This symbol is the key above the tab button) Call up the console (note: avoid hotkey conflicts)Paste the following code into the command line and press 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())Restart after the installation is complete.
3-3. Install Pretty JSON
Menu/Sublime Text->Preferences->Package Control, select Package Control:Install Package, enter
, and press Return The car completes the installation and finally restarts.
4. Use: windows:
key combination to format json string Mac: ctrl command j
combination Key formatted json string
The above is the detailed content of Introduction to the installation method of Sublime Text3 and JSON parsing plug-in. For more information, please follow other related articles on the PHP Chinese website!