Home > Net >  Disable background color for types in VScode while using Rust
Disable background color for types in VScode while using Rust

Time:07-18

I am using rust in vscode after sometime. VScode seems to be inferring the types and they are giving a blue background for it. I want the type inference but not the blue background for it. How can I disable it? It used to be just text with with light grey color . enter image description here

CodePudding user response:

A while ago some updates to VScode tweaked the default behavior of InlayHint several times, which caused annoyance to many people.

You can add it to settings.json to bring back the original transparent background for InlayHint:

{
    "workbench.colorCustomizations": {
        "editorInlayHint.background": "#00000000",
    },
}

If you want to customize the foreground color:

{
    "workbench.colorCustomizations": {
        "editorInlayHint.foreground": "#868686f0",
    },
}
  • Related