madskristensen / Tweakster

A Visual Studio extension
Apache License 2.0
241 stars 23 forks source link

Enable collapsing of single attributes. #4

Closed fiseni closed 4 years ago

fiseni commented 4 years ago

Currently, if a member has only one attribute, then it's not collapsible (which is logical). This PR changes that behaviour as follows:

Currently: image

Update: image

madskristensen commented 4 years ago

Thanks

fiseni commented 4 years ago

One more question/request. The usual options for Outlining are not very useful in this case (collapsing all the attributes). I have no experience with VS extensions whatsoever, and I have no idea how much work is required for that. But, if you consider that in the future releases would be awesome. Thank you.

madskristensen commented 4 years ago

Like a way to collapse/expand all attribute regions only?

fiseni commented 4 years ago

Yes, exactly. That would be great thing to have. Right now, you would need manually to select the inner content of the class (or any area), and then use the option "Toggle Outlining Expansion". Not a tragedy :) if it's not straightforward to implement, we can keep using it like that.