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

Suggested feature: Intellisense annotation for struct size. #5

Open
Convery opened this issue Oct 28, 2020 · 3 comments
Open

Suggested feature: Intellisense annotation for struct size. #5

Convery opened this issue Oct 28, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@Convery
Copy link

Convery commented Oct 28, 2020

Given that programmers that care about how their structures look are often interested in the size as well, it might be useful to include an annotation for sizeof(Struct) in the code (and struct view) =)

@Viladoman Viladoman added the enhancement New feature or request label Oct 28, 2020
@Viladoman
Copy link
Owner

If I understand correctly, your suggestion is to add the sizeof(T) also in the text window when hovering on top of the type with the QuickInfo? If so, that is a pretty nice idea, but it would require some constant background parsing to get all text editors up to date.

At least, at the moment that information for the queried structure is already in the Extension window, at the bottom right and in the nodes tooltip.
image
image

I think the bottom right text might need to be more obvious.

Correct me if I am wrong. I might have misunderstood your request.

@Viladoman Viladoman added this to Open in Suggestion Box Nov 1, 2020
@Convery
Copy link
Author

Convery commented Nov 2, 2020

Was thinking more about something inlined, like an opaque comment or an on-hoover popup:
bild

@Kochise
Copy link

Kochise commented Feb 12, 2021

And what about #pragma pack ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

3 participants