Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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)?

like image 684
Alex Zak Avatar asked Nov 23 '16 13:11

Alex Zak


2 Answers

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.


If anyone uses Mac OS:

command + shift + -

like image 20
Ivan Sanchez Avatar answered Nov 13 '22 04:11

Ivan Sanchez