Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code Disable JSDoc Comment Coloring

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):

enter image description here

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.

like image 236
Bradley Singer Avatar asked Feb 13 '18 20:02

Bradley Singer


People also ask

How do I turn off Vsoltips in VS code?

Type “editor. hover. enable” into the search field then check/uncheck the checkbox associated with “Controls whether the hover is shown.” to enable/disable the suggestion tooltip on hover.


1 Answers

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.

like image 153
Bradley Singer Avatar answered Oct 16 '22 07:10

Bradley Singer