Collapse to Definitions

已回答

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"

0

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 Alt key. This will expand the particular element recursively, instead of just the top level. Or set a keyboard shortcut for Code > Folding > Expand Recursively.

0

请先登录再写评论。