Home > Development Tools > sublime > sublime text3 format json

sublime text3 format json

藏色散人
Release: 2019-09-19 17:12:45
forward
6121 people have browsed it

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!

sublime text3 format json

Install install package

cmd + `
Copy after login

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())
Copy after login

Install pretty json

cmd + shift +p
install package
pretty json
Copy after login

or

cd /Users/xixicat/Library/Application Support/Sublime Text 3/Packages
git clone https://github.com/dzhibas/SublimePrettyJson.git
Copy after login

Formatting

ctrl+cmd+j
Copy after login

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

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!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template