【问题标题】:How do I disable the underlining of Rust variables and their methods in Visual Studio Code?如何在 Visual Studio Code 中禁用 Rust 变量及其方法的下划线?
【发布时间】:2021-01-08 20:18:23
【问题描述】:

如何禁用变量及其方法的下划线,如上所示?我觉得这很让人分心。

我不认为这是 Disable wavy underline in VS Code 的重复,因为它不是波浪下划线。

【问题讨论】:

    标签: visual-studio-code rust


    【解决方案1】:
    {
        "editor.semanticTokenColorCustomizations": {
            "enabled": true,
            "rules": {
                "*.mutable": {
                    "underline": false,
                }
            }
        }
    }
    

    通过将上述内容转储到settings.json 来修复它

    【讨论】:

    • 作为一个合法但不完全失明的人,这一直是一个障碍。我不知道这可以关闭。感谢您提出问题并发布解决方案。
    猜你喜欢
    • 2021-08-20
    • 2021-11-03
    • 1970-01-01
    • 2017-09-13
    • 2021-01-07
    • 1970-01-01
    • 2013-07-19
    • 2012-03-22
    • 2020-10-07
    相关资源
    最近更新 更多