Sublime installs JSON formatting plug-in

Install Package Control

Use the shortcut key ( Ctrl + Shift + P ), search for Package Control , and install it.
Insert image description here


Install Pretty JSON

Use the shortcut key ( Ctrl + Shift + P ), search for Pretty JSON , and install it.
Insert image description here

JSON formatting

Use the shortcut keys ( Ctrl + Alt + J ) to format the JSON string.
For example, format the following string:

{
    
    "name":"Miracle Luna", "age":"XX", "country":"China","language":"Chinese"}
Before formatting

Insert image description here

After formatting

Insert image description here


Guess you like

Origin blog.csdn.net/aikudexiaohai/article/details/133510310