MATLAB: Can I “collapse all in” the editor like in the help browser

editorMATLAB

When I work in a class I usually collapse all my methods (functions) to get a better overwiew. BUT I cant seem to find a way of collapsing all of them at once, instead I have to do them one by one…
Im I just missing something super simple or is matlab actually lacking this feature in the Editor?

Best Answer

From the documentation: "To expand or collapse all of the code in a file, place your cursor anywhere within the file, right-click, and then select Code Folding > Expand All or Code Folding > Fold All from the context menu."