# 为任何JSON文件添加注释的VSCODE插件

**URL:** <https://meta.appinn.net/t/topic/62071>\
**Category:** 发现频道\
**Created:** [2024 年10 月 16 日 12:38 UTC](https://meta.appinn.net/t/topic/62071 "2024-10-16T12:38:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

作者： ![zhangfisher](https://meta-edge.appinn.com/letter_avatar_proxy/v4/letter/z/71e660/32.png) [@zhangfisher](https://meta.appinn.net/u/zhangfisher)\
发布日期： [2024 年10 月 16 日 12:38 UTC](https://meta.appinn.net/t/topic/62071/1 "2024-10-16T12:38:20Z")

</div>

各位前端开发者，有没有发现自己的`package.json`的`script`越来越复杂？

团队开发中，最好加个注释！

但是不幸的是，JSON是不支持添加注释的。

要为`JSON`添加注释，只有用JSON5，但是`package.json`是标准的JSON，所以这时候就可以用到一款VSCODE插件`json comments extension`

> **[GitHub - zhangfisher/json\_comments\_extension: Add comments to JSON file of vscode extension](https://github.com/zhangfisher/json_comments_extension)**
>
> Add comments to JSON file of vscode extension

该插件可以非常方便地为任意json文件添加注释，效果如下：

![](https://github.com/zhangfisher/json_comments_extension/blob/master/preview.gif)
