microsoft / microsoft/vscode-cpptools
Add inlay hints to constructor calls
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
Feature Request
It would be nice if inlay hints were also shown for the parameter/member names in constructors:

Note how inlay hints are shown for the function, but not for the normal constructor call or the aggregate initialization.
struct with_constructor
{
int a_;
int b_;
with_constructor(int a, int b) : a_{a}, b_{b} {}
};
struct aggregate
{
int a;
int b;
};
void method(int a, int b) {}
int main()
{
with_constructor a(1, 2);
with_constructor b{1, 2};
aggregate c{1, 2};
method(1, 2);
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by examining the existing inlay-hint behavior for function calls in the vscode-cpptools repository, then compare it with the constructor and aggregate-initialization examples in this issue. Done means parameter or member-name hints appear for both constructor forms and aggregate initialization without regressing ordinary function-call hints.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, vscode
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100