It is possible to change Code Folding preference to suit your need. Thus code folding can be set enable/unable for specific constructs (ex: if block
, for loop
, Sections
...).
To change folding preferences, go to Preferences -> Code Folding:
Then you can choose which part of the code can be folded.
Some information:
Example: To enable folding for sections:
An interesting option is to enable to fold Sections. Sections are delimited by two percent signs (
%%
).Example: To enable it check the "Sections" box:
Then instead of seeing a long source code similar to :
You will be able to fold sections to have a general overview of your code :