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

Show Preview of Constant Values on Hover #6870

Open
b-simjoo opened this issue Jan 20, 2025 · 0 comments
Open

Show Preview of Constant Values on Hover #6870

b-simjoo opened this issue Jan 20, 2025 · 0 comments
Assignees
Labels
needs repro Issue has not been reproduced yet

Comments

@b-simjoo
Copy link

Current Behavior:

Currently, when defining constant variables using UPPERCASE naming conventions (as is commonly done to indicate constant values), VS Code does not provide a preview of the variable's value when hovering over it in the code (at least in python). This behavior makes it harder to quickly reference the value of constants, especially in larger files or when refactoring code.
Screenshot:
Image

Requested Behavior:

When hovering over a constant variable (e.g., ALL_BOX_IOU_MERGE), VS Code should display a preview of the constant's value in the tooltip, in addition to its type and other information.
Mockup Example:

When hovering over ALL_BOX_IOU_MERGE, the tooltip could show:
Image

@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python Jan 20, 2025
@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro Issue has not been reproduced yet
Projects
None yet
Development

No branches or pull requests

2 participants