It is possible to change Code Folding preference to suit your need. Thus code folding can be set enable/unable for specific constructs (ex:
To change folding preferences, go to Preferences -> Code Folding:
Then you can choose which part of the code can be folded.
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 :