Code folding other cells shortcut

19 ビュー (過去 30 日間)
Matthew Arthington
Matthew Arthington 2015 年 4 月 9 日
コメント済み: Michael 2022 年 12 月 1 日
I accidentally pressed a keyboard shortcut (close to ctrl+v) that collapsed all the cells in the function I was editing except the current one. I think this might be quite a handy shortcut, but I CANNOT find out which shortcut I pressed now, no matter what I google for. The preferences in my standard Matlab shortcut list do not show a shortcut to fold all cells but the current one, and I cannot see a menu option to do the same thing.
Do you know what I used? If you know what I pressed then please tell me in an answer.
I'm using Windows 7, with Matlab 2014b
  1 件のコメント
Bobby Huxford
Bobby Huxford 2017 年 5 月 24 日
Ctrl + = to fold all ctrl + shift + = to unfold all

サインインしてコメントする。

回答 (2 件)

Adam Danz
Adam Danz 2022 年 2 月 1 日
編集済み: Adam Danz 2022 年 2 月 1 日
Prior to Matlab R2021b
% Fold all: Ctrl + =
% Unfold all: Ctrl + shift + =
Starting in R2021b
% Fold all: Ctrl + ,
% Unfold all: Ctrl + shift + ,

Michael
Michael 2022 年 7 月 14 日
I thought this was the item I was looking for
Howeber in 2020b -- ctrl = increased the font sizze inside appdesigner
and ctrl shift = DID NOT decrease the font :-(
  4 件のコメント
Michael
Michael 2022 年 12 月 1 日
I just tried ctrl + , in app designer
Unfortunately -- over enthusiatic -- it folds all the functions and then considers the app a function so it closes that too -- and you have just one line left on the screen
Michael
Michael 2022 年 12 月 1 日
Actually if you click on the one line -- then the app code does not completely unfold so you can then go in and open a few individual sections

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeChebyshev についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by