In WebStorm, is there a way to collapse all the elements at my current level

Alex Zak picture Alex Zak · Nov 23, 2016 · Viewed 12.6k times · Source

We have a common structure in our code where we have several related classes in the same file with several methods in each. What I would like to achieve is to fold all the methods in the class I'm in so that I could get a good overview of the "moving parts" in this class.

I know there is the Collapse Recursively method, but the problem with that is that it fold all the inside parts of the methods, so that when I want to dig in, I can't.

So my question is, is there a way (complex as it may be) to collapse all the elements at my current level (with a keyboard shortcut)?

Answer

So my question is, is there a way (complex as it may be) to collapse all the elements at my current level (with a keyboard shortcut)?

Key board short cut : Hold down ctrl shift - to collapse them all.