VSCode:`editor.tokenColorCustomizations` >`comment` 不会为整个评论着色 [英] VSCode: `editor.tokenColorCustomizations` > `comment` does not color the whole comment

查看:90
本文介绍了VSCode:`editor.tokenColorCustomizations` >`comment` 不会为整个评论着色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  • 适用于 macOS 的 Visual Studio Code 1.18.0.
  • 主题 hedinne.popping-and-locking-vscode by hedinne.
  • Visual Studio Code 1.18.0 for macOS.
  • Theme hedinne.popping-and-locking-vscode by hedinne.

为什么当我覆盖editor.tokenColorCustomizations > comment时块注释的初始/*的颜色没有改变?

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

推荐答案

"editor.tokenColorCustomizations": {
    "textMateRules": [
        {
            "scope": "punctuation.definition.comment",
            "settings": {
                "foreground": "#33f"
            }
        }
    ]
}

这篇关于VSCode:`editor.tokenColorCustomizations` >`comment` 不会为整个评论着色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆