Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>jsonFormatNew to Visual Studio Code? Get it now.
jsonFormat

jsonFormat

wang_mou_ren

|
4,492 installs
| (0) | Free
jsonFormat
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

jsonFormat README

  • 有点抄袭 emmet 的语法,但是没他做的好 - -。。。 不知道怎么触发 按下 tab 的回调,删不掉之前的语法,不像 emmet 唉,流下没有技术的泪水

使用 + 来进行分割使用 , 也可以最好使用 + key 不能有特殊字符,只能有字母+数字(正则表达式不太好- -。。。)

例子:

    a:2+b:2+c:{a:1,b:[1,2,3,{a:33,b:"123"}]}

格式化结果:

可能不太美观,你们再下个插件格式化一下,芜湖

    {
        "a": 2,
        "b": 2,
        "c": {
            "a": 1,
            "b": [
                1,
                2,
                3,
                {
                    "a": 33,
                    "b": "123"
                }
            ]
        }
    }
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft