KirillOsenkov / MSBuildStructuredLog

A logger for MSBuild that records a structured representation of executed targets, tasks, property and item values.
MIT License
1.42k stars 188 forks source link

Expand/Collapse all Nodes Context Menu Option #634

Open michael-hawker opened 1 year ago

michael-hawker commented 1 year ago

Would be great in both the Log view and the Search Log view to be able to right-click and expand or collapse all nodes under the selected node.

This would make it easier to view more or less information around a particular node.

KirillOsenkov commented 1 year ago

You can expand any subtree by pressing * on the numeric keypad (this works for any WPF tree view). Just be careful because it will hang for large subtrees. + and - or the arrow keys expand collapse. As far as I'm aware there's no shortcut to collapse a subtree recursively, and it shouldn't be too hard to add.

michael-hawker commented 1 year ago

Thanks @KirillOsenkov, didn't know there was a keyboard shortcut, having it in the context menu too would help with discovery (as usually you can then see the shortcut next to the label as well). Thanks!