microsoft / microsoft/vscode-cpptools
Inlay hints for macros
Open
Nobody has claimed this yet.
enhancement
Feature: Inlay Hint
Language Service
Visual Studio
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
Feature Request
Consider following code
void a(int aa, int bb, int cc, const char *file);
#define b(x, y, z) a(x, y, z, __FILE__)
int main()
{
a(1, 2, 3, "a.cpp");
b(4, 5, 6);
}
currently the inlay hints don't work for b() macro call inside main():

expected behaviour:
- show inlay hints for b call so that it looks something like this:
b(x: 4, y: 5, z: 6) - nice to have: show inlay hints inside macro declarations, so that macro definition looks like this:
#define b(x, y, z) a(aa: 1, bb: 2, cc: 3, file: __FILE__)
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 locating the existing inlay-hint handling for C++ function calls and how macro expansions are represented. Compare the direct call with the b() macro call, then determine how tests for inlay hints can cover argument labels at macro call sites and, if supported, inside macro declarations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100