我如何更改 Rust VS Code 中将字符“>”设置为红色的规则,字符是单独的?

问题描述 投票:0回答:0

出于某种原因,VS Code 开始在箭头函数“->”中显示字符“>”,颜色为红色

enter image description here

我在 settings.json 文件中尝试这样的事情: enter image description here

{
    "editor.tokenColorCustomizations": {
            "textMateRules": [
                {
                    "scope": "keyword.operator.hyphen punctuation.definition.greater-than",
                    "settings": {
                        "foreground": "#1aff00"
                    }
                }
            ]
     }
}

当“>”没有他的兄弟“<", when I write "<>”不显示红色时,我认为与锈分析器有关

请帮忙

visual-studio-code rust colors syntax-highlighting rust-analyzer
© www.soinside.com 2019 - 2024. All rights reserved.