vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

C++ complete function calls

Open Tem3dy opened this issue 8 months ago • 3 comments

Feature Request

Hello, I would like to request a feature similar to "javascript/typescript.suggest.completeFunctionCalls", where upon calling a method, the parenthesis are inserted automatically and the caret is placed in the appropriate position (no arguments = caret is placed at the end of the function call, arguments = caret is placed inside the parenthesis)

Tem3dy avatar Mar 08 '25 07:03 Tem3dy

+1

It would be really nice if picking a function call from suggestion list would automatically append parentheses.

Rawalanche avatar Apr 06 '25 08:04 Rawalanche

This feature request is being closed due to insufficient upvotes. Please leave a 👍-upvote or 👎-downvote reaction on the issue to help us prioritize it. When enough upvotes are received, this issue will be eligible for our backlog.

github-actions[bot] avatar Jun 05 '25 11:06 github-actions[bot]

@Tem3dy @Rawalanche We already have a setting C_Cpp.autocompleteAddParenthesis.

Image

Is there something insufficient with the existing setting?

sean-mcmanus avatar Jun 05 '25 17:06 sean-mcmanus

This issue has been closed because it needs more information and has not had recent activity.

github-actions[bot] avatar Jul 06 '25 11:07 github-actions[bot]

@Tem3dy @Rawalanche We already have a setting C_Cpp.autocompleteAddParenthesis.

Image

Is there something insufficient with the existing setting?

I guess the main insufficiency here is discoverability. Right now, this obscure setting (which there are at least hundreds of in VSCode) is off by default, and the reference Auto Closing Brackets setting is set to languageDefined by default. I think it'd make more sense here to default it to enabled for more modern IDE experience. I think it's on the same level of essential usability as auto conversion of period to pointer arrow when accessing pointers.

I've turned it on and it seems to work well, yet people are still making feature requests for it, implying that the problem is not that the feature doesn't exist, but that it is hard to find even for people who are actively looking for it.

Rawalanche avatar Jul 19 '25 10:07 Rawalanche