clangd icon indicating copy to clipboard operation
clangd copied to clipboard

Double click to insert argument comment

Open pascalpfeil opened this issue 11 months ago • 2 comments

The vscode python extension has this very useful feature where you can double click to insert argument comments that I really miss when doing C++.

Before: image After: image

I would like to see the same for this extension. that would turn this image into this image

We already have auto completion for argument comments when typing /* which is useful, but the double click feature would be even better image

pascalpfeil avatar Mar 15 '24 14:03 pascalpfeil

(Transferred to server repo as that's where this feature would need to be implemented.)

HighCommander4 avatar Mar 15 '24 19:03 HighCommander4

I assume the vscode python extension is doing this using the Language Server Protocol's interactive labels feature for inlay hints.

See also https://github.com/clangd/clangd/issues/1535 which is on file about making use of the interactive labels feature for type hints, to offer navigation to the type definition.

HighCommander4 avatar Mar 15 '24 19:03 HighCommander4