I added this code to my setting.json
"editor.tokenColorCustomizations": {
"comments": "#00ff00"
}
But It doesn't change the color for slashes as you can see the below screenshot.
It remains still grayed.
How can I change the whole comment color contains slashes?
On the menu bar, choose Tools > Options. In the options list, choose Environment > Fonts and Colors. In the Show settings for list, choose Environment. If you want to change the font for tool windows only, in the Show settings for list, choose All Text Tool Windows.
The comments definition (// or # for other languages) can be customized with the punctuation.definition.comment
scope in the textMateRules
array.
Example:
"editor.tokenColorCustomizations": {
"[Material Theme Darker High Contrast]": { // optional name of a specific theme
"textMateRules": [
{
"scope": "punctuation.definition.comment",
"settings": {
"foreground": "#00ff00"
}
}
]
}
}
You can see the scopes of all the command Inspect TM Scopes
in the command palette.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With