How do I disable the underlining of Rust variables and their methods in Visual Studio Code?

Viewed 2331

enter image description here

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

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

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

Fixed it by dumping the above in settings.json

Try adding the following line to settings.json

"editor.semanticHighlighting.enabled": false,
Related