StructLayout icon indicating copy to clipboard operation
StructLayout copied to clipboard

Suggested feature: Intellisense annotation for struct size.

Open Convery opened this issue 4 years ago • 3 comments

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) =)

Convery avatar Oct 28 '20 09:10 Convery

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 avatar Oct 31 '20 04:10 Viladoman

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

Convery avatar Nov 02 '20 00:11 Convery

And what about #pragma pack ?

Kochise avatar Feb 12 '21 15:02 Kochise