GlobalNPC
V2EX  ›  问与答

请问 VSCode 有没有自动美化 Json 的方法

  •  
  •   GlobalNPC · Aug 22, 2018 · 15440 views
    This topic created in 3004 days ago, the information mentioned may be changed or developed.
    就是打开一个 Json 文件,自动美化,不需要再按额外的快捷键那种
    设置或者插件都可以,谢谢。
    搜了半天没搜到。。。
    5 replies  •  2020-01-15 02:34:01 +08:00
    thundernet8
    thundernet8
    Aug 22, 2018 via Android❤️1
    1
    prettier +保存自动格式化
    GlobalNPC
    GlobalNPC
    OP
    Aug 22, 2018
    2
    @thundernet8 谢谢
    bigyhm
    bigyhm
    Oct 18, 2018❤️1
    3
    装个 JSON Tools 这个插件,然后再:Ctrl(Cmd)+Alt+M ;
    然后再装一个 Paste JSON as Code 插件,数据保存为.json,就好看的一笔了;
    foreversummer
    foreversummer
    Jun 24, 2019
    4
    @bigyhm 这个插件效果不错, 好用
    astro1boy
    astro1boy
    Jan 15, 2020
    5
    JSON Tool 正解,快捷键一改和 Sublime 体验完全一样,参考:
    https://blog.csdn.net/weixin_41216356/article/details/103982177
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4922 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 02:41 · PVG 10:41 · LAX 18:41 · JFK 21:41
    ♥ Do have faith in what you're doing.