I'm using VSCode 1.65.0, the clangd extension, and clangd from latest LLVM (14.0).
It seems to have introduced a feature where it displays type-hints whenever I use auto
. Here is an example:
This is becoming very obtrusive to me. How can this be turned off? I couldn't find documentation about this feature.
Thanks.
You can go to the command palette (⇧⌘P or Ctrl+Shift+P) and start typing clangd: Toggle inlay hints
to turn this feature on/off.
In the meanwhile I discovered you can create a file called .clangd
, and add this:
InlayHints:
Enabled: Yes
ParameterNames: Yes
DeducedTypes: No
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With