Expand or collapse all children of a compound attribute

This topic is applicable to both the Node Editor and the Hypershade.

Shift-click on the (plus) icon of a compound attribute to expand all layers of its children. Alternatively, you can use the same shortcut on the (minus) icon of a compound attribute to collapse all layers of its children.