I wish my AceEdit displaying all the uppermost classes and functions collapsed when the source code is loaded (or a "collapse all" button was pressed).
I think i missed somewhat, shouldn't it be easy?
Currently ace only provides options to foldAll
and foldOther
if foldAll hides too much you can use
editor.session.foldAll();
editor.session.unfold([...Array of ranges to not hide]);
If that doesn't work for you and you think this is a common functionality in other editors you can create an issue here