Position the cursor in a scope and use the shortcut Option Command Arrow Left to fold that scope. To unfold use the shortcut Option Command Arrow Right.