ctrl+shift+p filters: :st2 :st3 :win :osx :linux
浏览

JSONComma

jsoncomma ST3

一个用于处理那些讨厌的 JSON 逗号的 Sublime Text 插件!

详细信息

安装量

  • 总数 39K
  • Win 22K
  • Mac 12K
  • Linux 5K
8月6日 8月5日 8月4日 8月3日 8月2日 8月1日 7月31日 7月30日 7月29日 7月28日 7月27日 7月26日 7月25日 7月24日 7月23日 7月22日 7月21日 7月20日 7月19日 7月18日 7月17日 7月16日 7月15日 7月14日 7月13日 7月12日 7月11日 7月10日 7月9日 7月8日 7月7日 7月6日 7月5日 7月4日 7月3日 7月2日 7月1日 6月30日 6月29日 6月28日 6月27日 6月26日 6月25日 6月24日 6月23日 6月22日
Windows 8 9 1 1 4 4 5 3 5 1 2 5 1 2 4 5 2 4 2 3 2 5 6 4 5 8 8 6 2 4 3 2 5 5 5 3 6 2 0 5 2 2 2 1 3 1
Mac 7 4 1 0 5 4 5 9 5 2 2 4 5 5 4 4 4 1 5 4 2 7 2 1 1 3 1 4 2 5 0 0 3 4 6 4 0 0 1 3 5 1 2 2 0 2
Linux 2 1 1 0 2 0 2 0 0 0 0 1 1 2 2 0 1 0 0 1 1 0 0 0 1 0 1 1 1 2 0 1 0 2 0 2 0 1 1 0 0 0 0 0 1 1
0510158月6日8月3日7月31日7月28日7月25日7月22日7月19日7月16日7月13日7月10日7月7日7月4日7月1日6月28日6月25日6月22日8月6日 Linux: 2 Mac: 7 Windows: 88月5日 Linux: 1 Mac: 4 Windows: 98月4日 Linux: 1 Mac: 1 Windows: 18月3日 Linux: 0 Mac: 0 Windows: 18月2日 Linux: 2 Mac: 5 Windows: 48月1日 Linux: 0 Mac: 4 Windows: 47月31日 Linux: 2 Mac: 5 Windows: 57月30日 Linux: 0 Mac: 9 Windows: 37月29日 Linux: 0 Mac: 5 Windows: 57月28日 Linux: 0 Mac: 2 Windows: 17月27日 Linux: 0 Mac: 2 Windows: 27月26日 Linux: 1 Mac: 4 Windows: 57月25日 Linux: 1 Mac: 5 Windows: 17月24日 Linux: 2 Mac: 5 Windows: 27月23日 Linux: 2 Mac: 4 Windows: 47月22日 Linux: 0 Mac: 4 Windows: 57月21日 Linux: 1 Mac: 4 Windows: 27月20日 Linux: 0 Mac: 1 Windows: 47月19日 Linux: 0 Mac: 5 Windows: 27月18日 Linux: 1 Mac: 4 Windows: 37月17日 Linux: 1 Mac: 2 Windows: 27月16日 Linux: 0 Mac: 7 Windows: 57月15日 Linux: 0 Mac: 2 Windows: 67月14日 Linux: 0 Mac: 1 Windows: 47月13日 Linux: 1 Mac: 1 Windows: 57月12日 Linux: 0 Mac: 3 Windows: 87月11日 Linux: 1 Mac: 1 Windows: 87月10日 Linux: 1 Mac: 4 Windows: 67月9日 Linux: 1 Mac: 2 Windows: 27月8日 Linux: 2 Mac: 5 Windows: 47月7日 Linux: 0 Mac: 0 Windows: 37月6日 Linux: 1 Mac: 0 Windows: 27月5日 Linux: 0 Mac: 3 Windows: 57月4日 Linux: 2 Mac: 4 Windows: 57月3日 Linux: 0 Mac: 6 Windows: 57月2日 Linux: 2 Mac: 4 Windows: 37月1日 Linux: 0 Mac: 0 Windows: 66月30日 Linux: 1 Mac: 0 Windows: 26月29日 Linux: 1 Mac: 1 Windows: 06月28日 Linux: 0 Mac: 3 Windows: 56月27日 Linux: 0 Mac: 5 Windows: 26月26日 Linux: 0 Mac: 1 Windows: 26月25日 Linux: 0 Mac: 2 Windows: 26月24日 Linux: 0 Mac: 2 Windows: 16月23日 Linux: 1 Mac: 0 Windows: 36月22日 Linux: 1 Mac: 2 Windows: 18月6日 Linux: 2 Mac: 7 Windows: 88月5日 Linux: 1 Mac: 4 Windows: 98月4日 Linux: 1 Mac: 1 Windows: 18月3日 Linux: 0 Mac: 0 Windows: 18月2日 Linux: 2 Mac: 5 Windows: 48月1日 Linux: 0 Mac: 4 Windows: 47月31日 Linux: 2 Mac: 5 Windows: 57月30日 Linux: 0 Mac: 9 Windows: 37月29日 Linux: 0 Mac: 5 Windows: 57月28日 Linux: 0 Mac: 2 Windows: 17月27日 Linux: 0 Mac: 2 Windows: 27月26日 Linux: 1 Mac: 4 Windows: 57月25日 Linux: 1 Mac: 5 Windows: 17月24日 Linux: 2 Mac: 5 Windows: 27月23日 Linux: 2 Mac: 4 Windows: 47月22日 Linux: 0 Mac: 4 Windows: 57月21日 Linux: 1 Mac: 4 Windows: 27月20日 Linux: 0 Mac: 1 Windows: 47月19日 Linux: 0 Mac: 5 Windows: 27月18日 Linux: 1 Mac: 4 Windows: 37月17日 Linux: 1 Mac: 2 Windows: 27月16日 Linux: 0 Mac: 7 Windows: 57月15日 Linux: 0 Mac: 2 Windows: 67月14日 Linux: 0 Mac: 1 Windows: 47月13日 Linux: 1 Mac: 1 Windows: 57月12日 Linux: 0 Mac: 3 Windows: 87月11日 Linux: 1 Mac: 1 Windows: 87月10日 Linux: 1 Mac: 4 Windows: 67月9日 Linux: 1 Mac: 2 Windows: 27月8日 Linux: 2 Mac: 5 Windows: 47月7日 Linux: 0 Mac: 0 Windows: 37月6日 Linux: 1 Mac: 0 Windows: 27月5日 Linux: 0 Mac: 3 Windows: 57月4日 Linux: 2 Mac: 4 Windows: 57月3日 Linux: 0 Mac: 6 Windows: 57月2日 Linux: 2 Mac: 4 Windows: 37月1日 Linux: 0 Mac: 0 Windows: 66月30日 Linux: 1 Mac: 0 Windows: 26月29日 Linux: 1 Mac: 1 Windows: 06月28日 Linux: 0 Mac: 3 Windows: 56月27日 Linux: 0 Mac: 5 Windows: 26月26日 Linux: 0 Mac: 1 Windows: 26月25日 Linux: 0 Mac: 2 Windows: 26月24日 Linux: 0 Mac: 2 Windows: 16月23日 Linux: 1 Mac: 0 Windows: 36月22日 Linux: 1 Mac: 2 Windows: 18月6日 Linux: 2 Mac: 7 Windows: 88月5日 Linux: 1 Mac: 4 Windows: 98月4日 Linux: 1 Mac: 1 Windows: 18月3日 Linux: 0 Mac: 0 Windows: 18月2日 Linux: 2 Mac: 5 Windows: 48月1日 Linux: 0 Mac: 4 Windows: 47月31日 Linux: 2 Mac: 5 Windows: 57月30日 Linux: 0 Mac: 9 Windows: 37月29日 Linux: 0 Mac: 5 Windows: 57月28日 Linux: 0 Mac: 2 Windows: 17月27日 Linux: 0 Mac: 2 Windows: 27月26日 Linux: 1 Mac: 4 Windows: 57月25日 Linux: 1 Mac: 5 Windows: 17月24日 Linux: 2 Mac: 5 Windows: 27月23日 Linux: 2 Mac: 4 Windows: 47月22日 Linux: 0 Mac: 4 Windows: 57月21日 Linux: 1 Mac: 4 Windows: 27月20日 Linux: 0 Mac: 1 Windows: 47月19日 Linux: 0 Mac: 5 Windows: 27月18日 Linux: 1 Mac: 4 Windows: 37月17日 Linux: 1 Mac: 2 Windows: 27月16日 Linux: 0 Mac: 7 Windows: 57月15日 Linux: 0 Mac: 2 Windows: 67月14日 Linux: 0 Mac: 1 Windows: 47月13日 Linux: 1 Mac: 1 Windows: 57月12日 Linux: 0 Mac: 3 Windows: 87月11日 Linux: 1 Mac: 1 Windows: 87月10日 Linux: 1 Mac: 4 Windows: 67月9日 Linux: 1 Mac: 2 Windows: 27月8日 Linux: 2 Mac: 5 Windows: 47月7日 Linux: 0 Mac: 0 Windows: 37月6日 Linux: 1 Mac: 0 Windows: 27月5日 Linux: 0 Mac: 3 Windows: 57月4日 Linux: 2 Mac: 4 Windows: 57月3日 Linux: 0 Mac: 6 Windows: 57月2日 Linux: 2 Mac: 4 Windows: 37月1日 Linux: 0 Mac: 0 Windows: 66月30日 Linux: 1 Mac: 0 Windows: 26月29日 Linux: 1 Mac: 1 Windows: 06月28日 Linux: 0 Mac: 3 Windows: 56月27日 Linux: 0 Mac: 5 Windows: 26月26日 Linux: 0 Mac: 1 Windows: 26月25日 Linux: 0 Mac: 2 Windows: 26月24日 Linux: 0 Mac: 2 Windows: 16月23日 Linux: 1 Mac: 0 Windows: 36月22日 Linux: 1 Mac: 2 Windows: 1

readme

raw.​githubusercontent.​com

JSONComma

这是专为 Sublime Text 3 设计的官方插件,用于适配jsoncomma

jsoncomma是一个简单的实用工具,用于管理类似 JSON 文件中的逗号。它添加需要的逗号,并移除多余的逗号。

设置

JSONComma 会在每次保存似于 JSON 的文件时运行。它会尝试智能地识别似于 JSON 的文件(更多细节见should_be_enabled函数)。但是,您可以通过修改视图设置来明确选择是否在保存时修复文件,如下所示

{
    "jsoncomma_enabled": false
}

因此,例如,如果想要禁用所有 .json 文件在保存时运行,可以打开一个 JSON 文件,然后在命令面板中搜索 偏好设置:语法特定设置 并添加上面的文本。这将 明确 禁止在保存时运行。

同样,您可以明确为任何语法启用它。只需要在视图设置中进行操作。

如果 JSONComma 对于当前视图已禁用(即它不会在保存时运行),可以通过选择一些特定的文本,然后在命令面板中搜索 JSONComma:修复选择来修复这些文本。

自动下载

JSONComma 可以为您自动下载 jsoncomma 服务器。如果您同意,此软件包将为您保持其更新。对于好奇的人来说,这是为您系统的二进制文件下载位置

平台 位置
Windows %APPDATA%\jsoncomma\jsoncomma.exe
Mac OS ~/Library/Application Support/jsoncomma/jsoncomma
Linux $XDG_DATA_HOME/.local/share/jsoncomma/jsoncomma

命名注意事项

一般来说,您应该将 jsoncomma 完全使用小写字母进行参考。这只是因为这个为 Sublime Text 提供的插件使用了大写字母以符合编辑器的风格。