Binaryify / OneDark-Pro

Atom's iconic One Dark theme for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=zhuangtongfa.Material-theme
MIT License
1.52k stars 289 forks source link

Disable JSDoc Comment Coloring #190

Closed bwsinger closed 6 years ago

bwsinger commented 6 years ago

I want to be able to disable multicolored JSDoc comments.

The highlighting is cool, but if most of the functions on a page have colored comments, it becomes difficult to differentiate the functions from the comments. For example, this whole comment would be the default color:

dlxzalj - imgur

Is it possible to either add in this option or point out the color options needed to change this?

Binaryify commented 6 years ago

add this in your settings.json

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

image

bwsinger commented 6 years ago

This is exactly what I wanted. Thank you!

Swennet commented 6 years ago

This doesn't seem to work for me. (in PHP files, if that matters)

Any suggestions?

code_2018-04-13_16-26-38

code_2018-04-13_16-27-03

Binaryify commented 6 years ago

@Swennet you need check that code scope first, then change it image

Swennet commented 6 years ago

Sorry, I'm fairly new to VS code. How do I bring up this window?

Binaryify commented 6 years ago

@Swennet you can check this https://binaryify.github.io/OneDark-Pro/#/