필터 지우기
필터 지우기

Unfold nested folds in editor

조회 수: 7 (최근 30일)
Robin
Robin 2013년 9월 30일
댓글: Sean de Wolski 2013년 9월 30일
I am looking for a way to do a 'deep unfold' of nested folds in the Matlab editor - ie when all folds are closed I would like to be able to unfold a particular function, and have all nested loops and conditionals unfolded also to avoid having to manually click many times to see the whole function.
Most implementations of folding I have seen implement this, often with a modifier key (ie hold ctrl or alt while clicking the fold to do a nested unfold), but I couldn't find anything that works in Matlab (R2012a, Linux). This is different to the Fold/Expand all options which apply to all folds in a file.

답변 (1개)

Sean de Wolski
Sean de Wolski 2013년 9월 30일
That sounds like a valid enhancement request. I would recommend contacting support.
As a workaround: It seems like it remembers how functions were folded when the parent is folded. Thus you could unfold all of the sub ones (either manually or with Expand All), and then fold only the highest level ones so that you then see the behavior you desire.
  댓글 수: 2
Robin
Robin 2013년 9월 30일
Thanks. The workaround is not great as I am working on GUIDE generated GUI's with many callbacks etc., so I usually Fold All to get an overview - which means all folds are closed.
Sean de Wolski
Sean de Wolski 2013년 9월 30일
Another tool that might help you would be "go to function". If while the editor is selected, you hit ctrl+G it will pull up a tool that will allow you to quickly go to your function of interest. You could then expand all but already be where you want to be. Then collapse all again.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by