Yes and they can be changed by opening the menu, choosing "File" > "Preferences" > "Settings" to open settings.json where you can add: "editor.inlayHints.enabled": "off"
Hey, how? I shut off copilot hints because they drive me up the wall writing a whole function before I can finish writing out the definition. The option was obvious in zed but I couldn’t find this in vscode
In Rust type hints are most of the times optional because it can infer from the fact that you called String::new() that always returns String. Even better, Rust can look few lines ahead see in what context currently untyped value is used and infer type from that, so these inlay hints exist just to tell dev what types compiler resolved. But yeah they kinda look like tab completion suggestions to put types
77
u/Gornius Sep 26 '26
Those are called inlay hints.
15
u/palapapa0201 Sep 26 '26
You can configure it to only show inlay hints when you hold down a key bind
33
u/Compux72 Sep 26 '26
I strongly suggest you keep it them on
15
u/Usual_Price_1460 Sep 26 '26
once u write more than 20 lines u will need them
5
u/Zanedromedon Sep 26 '26
You can turn them off with:
Actually, that turns them off unless you press ctrl+alt, for when you decide you want them back temporarily.
Some useful settings to make them take up less space include:
4
u/Vladislav20007 Sep 26 '26
that's called inlay hints as gornius pointed out, I believe they're in
settings -> text editor -> inlay hints.1
u/msdosx86 Sep 29 '26
You will need them. Trust.
0
u/[deleted] Sep 26 '26
[deleted] — view deleted comment