Viladoman / StructLayout

Visual Studio Extension for C++ struct memory layout visualization
MIT License
477 stars 22 forks source link

Display outer variable in flat view #10

Closed amzeratul closed 3 years ago

amzeratul commented 3 years ago

When viewing in cacheline mode, I find it useful to switch to flat view, so it fits the screen.

However, it currently shows the innermost objects, which can lead to some structures being difficult to understand. For example, in the screenshot below, it'll show the internal members of std::vector, which to me is less useful than the name of the vector itself.

image

I'd like to request an alternate flat view, that shows the outermost variable, or something else to that effect.

Viladoman commented 3 years ago

I think you have a good point!.

The Top level flat gives better high level information to the user and the bottom gives what actually is stored in memory. I just did a quick mock up:

image

Basically I made the buttons 'Expand All' & 'Collapse All' available also in flat mode so we can choose between Top and Bottom Flat within the same mode.

I will clean this up a little bit and bundle it in the next Release (v0.2.3).

Thanks for suggestion.

Viladoman commented 3 years ago

The change got submitted and uploaded to the marketplace.

Thanks for the feedback there. Appreciated.