Collapse/Expand first folds

Collapse all folds is pretty much useless because while it condenses your script, every time you want to edit/read a piece of code (that’s what you’re doing if you have a script open), you have to open up a million folds just to get there. On the other hand, something that would be useful is collapsing the highest up folds and leaving everything inside them open. The folds would hide the pieces of code you’re not working with to clean up your view, while still allowing you to easily open those pieces up whenever you need them.

8 Likes

I wouldn’t say collapse all folds is useless. I use it all the time. It really helps me to locate the place in code I want to work with. Sometimes I’ll locate the code, place my cursor, then expand all in order to see the complete logic.

That said, being able to collapse only a certain level would be nice. Notepad++ has different hotkeys to fold top-level blocks, second-level blocks, etc. Realistically, collapsing the top level is the most useful, so I would be cool with that being the only added feature.