VS Code Disable JSDoc Comment Coloring

匿名 (未验证) 提交于 2019-12-03 01:00:01

问题:

I want to disable multicolored JSDoc comments in Visual Studio Code.

Currently, the JSDoc comments look like this ('@param', etc. is colored something other than the default comment color):

JSDoc Highlighted Comment

I want the entire comment to be the same default grey color. I tried disabling all extensions and custom user settings, but that didn't affect the JSDoc highlighting. Does anyone know what settings I need to change to fix this? I thought either workbench.colorCustomizations or editor.tokenColorCustomizations would have the setting I want to change, but I haven't been able to find it.

Thanks!

回答1:

Thanks to user Binaryify on the One Dark Pro GitHub for showing me the settings that change the JSDoc highlighting in VS Code! Link to the GitHub issue

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

Replace the "foreground" color with the color you are using for comments. The color used here is the default gray used in the One Dark Pro theme.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!