Section folding not present

Using R2024B, i got the option to use the live editor and some things changed without asking.
Most importantly, the + buttons to fold a section have dissappeared, while in preferences/editor/code folding the option sections is ON.
Another change is that the titles of the scripts are in an additional column.
FInally, beneath the folder section, there is a new window with the 'script' , i.e. a shortcut to jump to a section.
How can I get the section folding again?
Cheers, Paul

7 Kommentare

Stephen23
Stephen23 am 12 Mär. 2026 um 9:14
Bearbeitet: Stephen23 am 12 Mär. 2026 um 9:14
AFAIK code folding is not supported in the Live Editor. You seem to be describing the Live Editor layout, but expecting features from the classic text Editor. The solution would be then to use the classic Editor.
Hamid Farshi
Hamid Farshi am 16 Mär. 2026 um 21:10
as mentioned in prior comment, code folding and section folding is not yet supported in the Live Editor however starting from R2025a, you can use a side panel called "Outline" which gives you ability to navigate quickly to your desired section in your live script.
Paul
Paul am 17 Mär. 2026 um 7:40
Thank you Stephen23 and Hamid for your answers.
Sorry, I was not specific enough:
Using R2024B, i got the option to use the live editor, which I did NOT select and still some things changed like the absence of the folding+ buttons.
Hamid Farshi
Hamid Farshi am 18 Mär. 2026 um 14:13
Bearbeitet: Hamid Farshi am 18 Mär. 2026 um 14:13
Paul, if I undrestand correctly, you mean that you opened a .m file and it got openned in the live editor instead of the traditional editor and hence some features were missing? if my assumption is correct, perhaps you are using a .m plain text based live script? (for more info take a look here: https://www.mathworks.com/help/matlab/matlab_prog/plain-text-file-format-for-live-scripts.html)
These files are live scripts and would open in live editor.
Paul
Paul am 30 Mär. 2026 um 12:06
OK, new attempt!
I opened a .m file and for the first time and without me asking anything, I got the option to open a live script.
I DID NOT choose that option and wanted to continue is my .m file as always.
But all of a sudden, there are two major visible changes:
  1. the name of the .m file is no longer above the script, but is an extra column in the editor section
  2. I do not have my +button which I was using to folding certain sections of the code.
All I want is the work in a regular .m file with the +buttons.
I hope this is clear! :-)
Groeten uit Amsterdam,
Paul
Stephen23
Stephen23 am 30 Mär. 2026 um 16:46
Paul
Paul am 31 Mär. 2026 um 7:23
You are right! I did go to support.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Entering Commands finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2024b

Gefragt:

am 12 Mär. 2026 um 7:37

Kommentiert:

am 31 Mär. 2026 um 7:23

Community Treasure Hunt

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

Start Hunting!

Translated by