HiveBrain v1.2.0
Get Started
← Back to all entries
snippetrustMajor

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

Submitted by: @import:stackoverflow-api··
0
Viewed 0 times
variablesunderlininghowdisablecodeandmethodsthestudiovisual

Problem

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.

Solution

The underline is intended to draw attention to mutable variables and methods. It can be disabled by adding the following to your settings.json:

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

Code Snippets

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

Context

Stack Overflow Q#64014254, score: 90

Revisions (0)

No revisions yet.