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.
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.