Matlab App Designer Editor: How to fold code of all functions at once?

Matlab App Designer, Editor:
I usually collapse all my methods (functions) to get a better overwiew. But I can't find a way of collapsing all of them at once, instead I have to do them one by one.
In Matlab Main Application there is the toolbar "View" with buttons for "Expand", "Collapse", "Expand all", ... - but within App Designer there isn't ??

 Accepted Answer

Use ctrl+, to collapse all and ctrl+shift+, to expand all.

6 Comments

Collapse STRG .
Expand STRG SHIFT .
Collapse All STRG ,
Expand All STRG SHIFT ,
I use the ctrl+ and ctrl+shift+ in the main editor all the time but when I try this in AppDesigner editor (code view) using windows, ctrl+ just enlarges the fontsize and ctrl+shift+ does nothing. r2020a.
I suspect the comment above missed the "small print" in the corect answer to this question: the key combinations for folding/unfolding all method code in appdesigner are CTRL_comma, and CTRL_SHIFT_comma (not CTRL_plus, which is the same as CTRL_equals, which indeed increase the font size in appdesigner).
I have to use Ctrl + "," in the main editor in R2019b. Ctrl + "+" does nothing.
Note that keyboard shortcuts to un/fold-all changed in R2021b. See this answer.

Sign in to comment.

More Answers (0)

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Products

Release

R2019a

Community Treasure Hunt

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

Start Hunting!