Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type and function hover hint: display literal declaration and not formatted one #12702

Open
FilipNur opened this issue Sep 10, 2024 · 0 comments
Labels
enhancement Improvement to an existing feature Feature: Hover (Quick Info) An issue related to Hover (Quick Info) Language Service

Comments

@FilipNur
Copy link

Feature Request

When hovering over variable or function in code, some variable/function argument's hints are displayed as if they are interpreted and not how they look like in actual source code. For example int const var, as both variable declaration and function parameter, is displayed as const int var. Can it be done in such a way that hover hints display copy of source and not interpreted representation of variable/function? It would be nice to have this feature as it is not only const placement, but also * placement in pointer declarations, as some people use int* var and others int *var, where current hover hint display int *var regardless of actual * placement in source. Displaying copy of source with declaration in hover hints would fix that and make any other syntax to display correctly.

@sean-mcmanus sean-mcmanus added Language Service enhancement Improvement to an existing feature Feature: Hover (Quick Info) An issue related to Hover (Quick Info) labels Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement to an existing feature Feature: Hover (Quick Info) An issue related to Hover (Quick Info) Language Service
Projects
Status: No status
Development

No branches or pull requests

2 participants