The Fold All command in the Fold menu folds all automatic folding points, and any unfolded section still marked with a folding point.
Fold menu Fold|Fold Fold|Unfold All Fold|Remove All File Type|Navigation