简体   繁体   中英

Comment highlighting in Visual Studio Code when using JSDoc

In Visual Studio Code, when using JSDoc comments, how can I ensure that the whole comment block is displayed in green (default comment color)?

As is, mine looks like this:

在此输入图像描述

But I would like it to look like this:

在此输入图像描述

If it helps, I have installed the DocumentThis extension, which is where the second screenshot is from.

From an older post

Add this to your Settings (File -> Preferences -> Settings)

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM