Collapse to Definitions
Answered
Hello. Regarding code folding, how can I collapse all methods without collapsing their content? As below:
Visual Studio "Collapse to Definitions"
Eclipse "Collapse All"
Notepad++ "Fold level n"
Please sign in to leave a comment.
Currently, it is not supported. There is a feature request for this: https://youtrack.jetbrains.com/issue/IDEA-167045 Unfortunately, it is not yet implemented. You can vote for it and follow for progress updates.
A possible workaround is to collapse all and then expand a single element while pressing the
Altkey. This will expand the particular element recursively, instead of just the top level. Or set a keyboard shortcut for Code > Folding > Expand Recursively.