필터 지우기
필터 지우기

How to keep folded sections folded when opening a script?

조회 수: 8 (최근 30일)
Antoine Boissinot
Antoine Boissinot 2023년 10월 18일
답변: Anagha Mittal 2024년 7월 17일 6:31
When I am doing modifications on a script, I always have to fold the same sections over and over again. Is there a way that once you fold a section in your script and close that script, the next time you'll open it, the sections will stay folded?
(I'm using MATLAB R2022b)

답변 (1개)

Anagha Mittal
Anagha Mittal 2024년 7월 17일 6:31
Hi,
I understand that you want to keep the folded sections folded when you reopen the scripts.
There is no built-in method to achieve this, however, you may try the following workaround steps by editing the "startup.m" file and using the matlab.editor settings.
Please add the following lines of code to the "startup.m" file:
s = settings;
s.matlab.editor.codefolding.FoldSections.TemporaryValue = 1;
To access the "startup.m" file, refer to the following link:
For more information regarding editor options, refer to the following libk:
Hope this helps!
Thanks!

카테고리

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

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by