Can I "collapse all in" the editor like in the help browser

72 views (last 30 days)
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?

Accepted Answer

Steven Lord
Steven Lord on 13 Jan 2017
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."
  4 Comments
Ben Henley
Ben Henley on 1 Aug 2022
Please respond @StevenLord, how do you "Fold All" in Matlab 2022a?
Adam Danz
Adam Danz on 2 Aug 2022
Edited: Adam Danz on 2 Aug 2022
Updated link to documentation explaining how to expand or collapse all
Screenshot from 22a, View tab.

Sign in to comment.

More Answers (1)

Wenxuan Jia
Wenxuan Jia on 27 Jun 2023
You should search "Fold-all" instead of "Collapse-all" in the keyboard shortcut menu. I was also confused for a while.
  1 Comment
Muhammad Jaffar
Muhammad Jaffar on 25 Nov 2024 at 16:44
I hope Micke you got your answer, in other can you can use an AI to get your answer instantly.
It is most search on internet: Free Instagram Video & Photo Downloader

Sign in to comment.

Categories

Find more on Environment and Settings in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!