V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
surunzi
V2EX  ›  分享创造

写了个 vscode 插件对配置文件进行可视化编辑

  •  
  •   surunzi · 2023-02-14 20:04:04 +08:00 · 2059 次点击
    这是一个创建于 437 天前的主题,其中的信息可能已经有所发展或是发生改变。

    工作需要写了个类似 vscode 设置界面的东西,想着也可以用来支持常见的各类配置文件,这样修改配置时就不用总是切去翻文档了。

    目前仅支持 .prettierrc.json 的可视化配置,后续会增加其它常见配置的支持。

    仓库: https://github.com/liriliri/vscode-settings-editor

    插件: https://marketplace.visualstudio.com/items?itemName=liriliri.vscode-settings-editor

    vscode-settings-editor

    7 条回复    2023-02-19 12:07:26 +08:00
    kele999
        1
    kele999  
       2023-02-14 21:30:28 +08:00
    挺好的
    shenhuilin0
        2
    shenhuilin0  
       2023-02-15 10:26:42 +08:00 via Android
    可以
    xuanyuanaosheng
        3
    xuanyuanaosheng  
       2023-02-15 14:05:09 +08:00
    看着不错,一会下载下来试试
    surunzi
        4
    surunzi  
    OP
       2023-02-15 14:26:11 +08:00
    @xuanyuanaosheng 欢迎提建议:)
    ourongxing
        5
    ourongxing  
       2023-02-16 00:37:22 +08:00   ❤️ 1
    思路不错,应该可以通过 schema 快速适配。看看这个,https://github.com/SchemaStore/schemastore/blob/master/src/api/json/catalog.json
    surunzi
        6
    surunzi  
    OP
       2023-02-16 09:45:49 +08:00 via iPhone
    @ourongxing 一开始看过了,目前用 schema 需要做通用化并不如自己硬编写高效跟自由,效果也不好,后边对一些不常用的配置可能会通过 schema 快速生成。
    surunzi
        7
    surunzi  
    OP
       2023-02-19 12:07:26 +08:00
    @ourongxing 已经通过 schema 对一些配置文件进行了快速适配,目前支持完整列表,欢迎试用:)

    * miniprogram
    - project.config.json
    - project.private.config.json
    - project.miniapp.json
    - app.json
    - page.json
    * npm
    - package.json
    - .npmrc
    * prettier
    - .prettierrc
    * typescript
    - tsconfig.json
    * cypress
    - cypress.json
    * lerna
    - lerna.json
    * Istanbul
    - .nycrc
    * Babel
    - .babelrc
    * Eslint
    - .eslintrc
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2892 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 08:54 · PVG 16:54 · LAX 01:54 · JFK 04:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.