如何在 Visual Studio Code 中禁用 Rust 变量及其方法的下划线? [英] How do I disable the underlining of Rust variables and their methods in Visual Studio Code?

查看:133
本文介绍了如何在 Visual Studio Code 中禁用 Rust 变量及其方法的下划线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

How do I disable the underlining of variables and their methods, like shown above? I find it quite distracting.

我不认为这与 在 VS Code 中禁用波浪下划线 重复,因为它不是波浪下划线.

I don't think this is a duplicate of Disable wavy underline in VS Code because it's not a wavy underline.

推荐答案

{
    "editor.semanticTokenColorCustomizations": {
        "enabled": true,
        "rules": {
            "*.mutable": {
                "underline": false,
            }
        }
    }
}

通过在 settings.json

这篇关于如何在 Visual Studio Code 中禁用 Rust 变量及其方法的下划线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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