Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode: `editor.tokenColorCustomizations` > `comment` does not color the whole comment

Environment

  • Visual Studio Code 1.18.0 for macOS.
  • Theme hedinne.popping-and-locking-vscode by hedinne.

Question

Why is it that the color of the initial /* of the block comment is not changed when I override editor.tokenColorCustomizations > comment?

Example

First line of block comment not changed

like image 765
Johan Forssell Avatar asked Nov 10 '17 08:11

Johan Forssell


People also ask

How do you highlight a comment in Vscode?

Windows: Ctrl + K + U. Mac: Command + K + U.

How do I use better comment extensions?

How to use it. Using the extension is very straightforward. Some special characters are just needed to be prepended after the comment symbol (ex: // for javascript) and before the actual comment itself.


1 Answers

"editor.tokenColorCustomizations": {
    "textMateRules": [
        {
            "scope": "punctuation.definition.comment",
            "settings": {
                "foreground": "#33f"
            }
        }
    ]
}
like image 97
Alex Avatar answered Sep 30 '22 13:09

Alex