Is there a way to collapse all code blocks in Eclipse?

前端 未结 15 1301
终归单人心
终归单人心 2020-11-30 16:07

Eclipse has that \"+/-\" on the left to expand and collapse blocks of code.

I\'ve got tens of thousands of lines to go through and would really like to just collapse

相关标签:
15条回答
  • 2020-11-30 16:47

    I had the same problem and found out Folding can be enabled or disabled, and in my case got disabled somehow.

    To solve it, simply right click on the line numbers/breakpoint section (vertical bar in the left of the editor), then under the 'Folding' section chose 'Enable folding'.

    ctrlshift/ should be working fine after.

    0 讨论(0)
  • 2020-11-30 16:47

    Collapse all : CTRL + SHIFT + /

    Expand all code blocks : CTRL + *

    0 讨论(0)
  • 2020-11-30 16:50

    If you are using PyDev in Eclipse, its Ctrl0 and Ctrl9 for collapse all and uncollapse all respectively. Ctrl- and Ctrl= to collapse individual methods when your cursor is on the line of the method declaration.

    0 讨论(0)
提交回复
热议问题