Folding Option: Expand all but top

I use folding a lot, typically in this pattern from loading:

  • Collapse All
  • Find the function I’m working on
  • Expand it
  • Expand Recursively
    I do this so that all the scopes are collapsed and easy to navigate from the start, but when I’m in a function and working on it, I want the whole function expanded.

Really, I’d like to be able do “Expand all but top” so that I then only need to manually click to expand the top level of the function/s I’m working in and all the rest is immediately visible.

Perhaps a “Collapse all above level x” would work (selecting level 1 for global functions, and level 2 for methods within classes).