Provide expand/collapse all collections feature
When calling .Dump() against a collection with members that have many properties, it can be cumbersome to wade through each item at a higher level.
For example, assume I have a List<foo> with 35 foo's where each foo has a property "bar". Each "bar" has 30 properties, it would be useful to be able to view all 35 foo's at a high level without also needing to wade through 35x30 properties representing each bar. It would be handy to be able to see all 35 foo's with a collapsed bar without needing to manually collapse all 35 instances of bar.
Currently one can individually collapse each instance of bar to achieve this effect, but it would be handy to have a context menu option or some other "Collapse Each bar" feature as a shortcut.
Completed in 4.35. You can now use the options on the Format menu in the results bar (shortcut keys = Alt+1, Alt+2, Alt+3, etc) to set the expansion level.
-
Note that it's also possible to call Dump() specifying a nesting level, e.g. stuff.Dump(2);
-
Andy commented
This preference could be saved in querie file
-
Mark S commented
Yes please add the preference because i would like to see top data and expand if i want to see other parts
-
Joe P commented
Another option would be to set a preference stating whether to have all collapsed or expanded by default. I almost never want to see all of them expanded...