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

Sizeof classes/structures during design-time #39932

Open
vsfeedback opened this issue Nov 21, 2019 · 0 comments
Open

Sizeof classes/structures during design-time #39932

vsfeedback opened this issue Nov 21, 2019 · 0 comments
Labels
Area-IDE Developer Community The issue was originally reported on https://developercommunity.visualstudio.com Feature Request IDE-IntelliSense Completion, Signature Help, Quick Info Need Design Review The end user experience design needs to be reviewed and approved.
Milestone

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


Since intellisense and intellicode are able to levy the compiler to gather so many statistics now, and Visual studio is becoming a better IDE for microcontrollers, I would suggest a way of providing better metrics on classes and structures. As of right now, if I want to know the sizeof a class or struct, I have to either count the data-members, or type out a line inline such as "static constexpr size_t class_size = sizeof(MyClass);" where MyClass is the type I want to determine the size of. This would be very helpful at design time. From my perspective, I see two ways of doing this:

  1. Hovering over the typename displays the comment AND the sizeof the type.
  2. Right clicking the typename gives the option to calculate the types size (if this operation is more intensive than I suspect).

I am assuming this isn't too big of a step since one can already hover over over a sizeof() expression and see the types size.


Original Comments

Visual Studio Feedback System on 11/13/2019, 02:35 AM:

Thank you for taking the time to provide your suggestion. We will do some preliminary checks to make sure we can proceed further. We'll provide an update once the issue has been triaged by the product team.

@sharwell sharwell added Area-IDE Feature Request IDE-IntelliSense Completion, Signature Help, Quick Info Need Design Review The end user experience design needs to be reviewed and approved. Developer Community The issue was originally reported on https://developercommunity.visualstudio.com labels Nov 21, 2019
@sharwell sharwell added this to In Queue in IDE: Design review via automation Nov 21, 2019
@sharwell sharwell added this to the Backlog milestone Nov 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Developer Community The issue was originally reported on https://developercommunity.visualstudio.com Feature Request IDE-IntelliSense Completion, Signature Help, Quick Info Need Design Review The end user experience design needs to be reviewed and approved.
Projects
Status: In Queue
IDE: Design review
  
In Queue
Development

No branches or pull requests

2 participants