在Visual代码中,当使用JSDoc注释时,如何确保整个注释块以绿色(默认注释颜色)显示?
实际上,我的看起来是这样的:
但我希望它看起来像这样:
如果有帮助的话,我已经安装了DocumentThis扩展,这是第二个屏幕截图的来源。
发布于 2018-03-07 12:20:57
将此添加到您的设置(文件->首选项->设置)
{
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"name": "storage.type.class.jsdoc",
"scope":
"storage.type.class.jsdoc,entity.name.type.instance.jsdoc,variable.other.jsdoc",
"settings": {
"foreground": "#608b4e"
}
}
]
}
}
https://stackoverflow.com/questions/49159149
复制相似问题