在 Visual Studio Code 中,使用 JSDoc 时评论,如何确保整个评论 block 显示为绿色(默认评论颜色)?
事实上,我的看起来像这样:
但我希望它看起来像这样:
如果有帮助,我已经安装了DocumentThis扩展名,这是第二个屏幕截图的来源。
最佳答案
将此添加到您的设置(文件 -> 首选项 -> 设置)
{
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"name": "storage.type.class.jsdoc",
"scope":
"storage.type.class.jsdoc,entity.name.type.instance.jsdoc,variable.other.jsdoc",
"settings": {
"foreground": "#608b4e"
}
}
]
}
}
关于javascript - 使用 JSDoc 时 Visual Studio Code 中的注释突出显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49159149/