Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 943
nz_21 Avatar asked Sep 22 '20 16:09

nz_21


People also ask

How do I turn off underline in VS Code?

OR press CTRL+SHIFT+P and search for the option 'Enable Error Squiggle' and just click on it. That's it! If you want to Disable Red Wavy underlines showed after syntax error, just Follow the above procedure and search for 'Disable Error Squiggle' and click on it.

How do you get rid of the blue squiggly lines in VS Code?

Press command+shift+p (open command pallete) Then type Disable Error Squiggles. And click on that Disable Error Squiggles.

What does yellow underline mean in VS Code?

The yellow line is a warning. You defined -[prefix]-transform but did not set transform without prefix. You should also see warning icons at the bottom left corner of VSCode (two icons, one for errors, one for warnings).

Can you use rust in Visual Studio Code?

First, download and install Visual Studio Code for Windows. After you've installed VS Code, install the rust-analyzer extension. You can either install the rust-analyzer extension from the Visual Studio Marketplace, or you can open VS Code, and search for rust-analyzer in the extensions menu (Ctrl+Shift+X).


2 Answers

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

Fixed it by dumping the above in settings.json

like image 61
nz_21 Avatar answered Nov 10 '22 04:11

nz_21


Try adding the following line to settings.json

"editor.semanticHighlighting.enabled": false,
like image 27
viktaur Avatar answered Nov 10 '22 05:11

viktaur