As you can see in the following picture, vscode is inserting that pink highlighted : String in the for loop. There is no actual text there, as if I move the cursor, it just skips over it, so it’s just visual. What is vscode telling me to do with it? there’s no suggestion when I hover over it.
VSCode is simply telling you the type of argument. The rust analyzer module puts these in places where the type is inferred to let you know what type the variable actually is.
2
Answers
Disabling
rust-analyzer.inlayHints.typeHints.enable
removes type hints.VSCode is simply telling you the type of
argument
. The rust analyzer module puts these in places where the type is inferred to let you know what type the variable actually is.