There\'s a number of keyboard shortcuts and menu commands to automatically expand or collapse all foldables in the current document. Ctrl+M, Ctrl
Select All via Ctrl A and then Ctrl M M
i.e. Press M twice while holding down Ctrl