De 1.15 (juillet 2017) vous pouvez le changer de paramètres.json Ctrl + ,
"editor.tokenColorCustomizations": {
"comments": "#d4922f"
},
De 1.20 (janvier 2018) vous pouvez également le faire pour chaque thème séparément :
"editor.tokenColorCustomizations": {
"[Atom One Dark]": {
"comments": "#d4922f"
}
},
Trouver la bonne portée :
Développeur : Scopes Inspect TM editor.action.inspectTMScopes
![demo tm inspect command]()
Priorité du sélecteur :
https://code.visualstudio.com/blogs/2017/02/08/syntax-highlighting-optimizations#_textmate-themes
Ok, plus d'exemples (pour js
) :
"editor.tokenColorCustomizations": {
"textMateRules": [{
"scope": "INSERT_SCOPE_HERE",
"settings": {
"foreground": "#ff0000"
}
}]
}
comment
punctuation.definition.comment
comment.block.documentation
storage.type.class.jsdoc
entity.name.type.instance.jsdoc
variable.other.jsdoc
![enter image description here]()