Sublime Text 格式化JSON

Rockysublimejson大约 2 分钟

文本剪辑器有很多,个人一直喜欢用sublime.

安装Pretty JSON插件

直接百度吧

设置快捷键

Untitled
Untitled

在右侧输入:

[
	{ "keys": ["ctrl+j"], "command": "pretty_json" }, //格式化
	{ "keys": [ "ctrl+n" ], "command": "un_pretty_json" }  //压缩
]
Untitled
Untitled

扩展配置

https://packagecontrol.io/packages/Pretty JSONopen in new window


系统推荐









  • 随机毒鸡汤:捧你的时候是玻璃杯子,松手了你就是玻璃碴子。

    Three Scrabble tiles spelling 'SUB' on a wooden surface with blurred green background.