clangd / vscode-clangd

Visual Studio Code extension for clangd
https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.vscode-clangd
MIT License
594 stars 97 forks source link

Add possibility to hide auto return type and parameter names #555

Closed stephanlachnit closed 7 months ago

stephanlachnit commented 7 months ago

Currently, source code lines can look significantly longer due to parameter names and the return being written out if it is auto type.

See for example here: Screenshot from 2023-11-26 21-48-46

I would be nice to add an option, that could hide these (I personally am fine with hovering over the symbol to get more info like resolved type and parameter name).

HighCommander4 commented 7 months ago

We have such an option, please see https://clangd.llvm.org/config.html#inlayhints

stephanlachnit commented 7 months ago

We have such an option, please see https://clangd.llvm.org/config.html#inlayhints

Ah, it's configured in clangd directly. Thanks and sorry for the noise.

HighCommander4 commented 7 months ago

Ah, it's configured in clangd directly

VSCode also has a setting to disable it on the client-side if you prefer that: "editor.inlayHints.enabled".