【问题标题】:Comment highlighting in Visual Studio Code when using JSDoc使用 JSDoc 时 Visual Studio Code 中的注释突出显示
【发布时间】:2018-08-15 23:34:28
【问题描述】:

在Visual Studio Code中,当使用JSDoc cmets时,如何保证整个注释块显示为绿色(默认注释颜色)?

按原样,我的看起来像这样:

但我希望它看起来像这样:

如果有帮助,我已经安装了 DocumentThis 扩展,这是第二个屏幕截图的来源。

【问题讨论】:

标签: javascript typescript visual-studio-code comments jsdoc


【解决方案1】:

From an older post

将此添加到您的设置(文件 -> 首选项 -> 设置)

{
    "editor.tokenColorCustomizations": {
        "textMateRules": [
          {
            "name": "storage.type.class.jsdoc",
            "scope":
              "storage.type.class.jsdoc,entity.name.type.instance.jsdoc,variable.other.jsdoc",
            "settings": {
              "foreground": "#608b4e"
            }
          }
        ]
      }
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2010-12-15
    • 2018-09-25
    • 2016-03-17
    • 1970-01-01
    • 1970-01-01
    • 2021-05-13
    • 1970-01-01
    • 2019-03-12
    相关资源
    最近更新 更多