Sizeof classes/structures during design-time #39932
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
Milestone
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:
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.
The text was updated successfully, but these errors were encountered: