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

前端 未结 15 1249
终归单人心
终归单人心 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:36

    If you always want the code collapsed by default, go to Windows > Preferences. Search for "folding". Then check all the items under "Initially fold these elements".

    0 讨论(0)
  • Right click on the +/- sign and click collapse all or expand all.

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

    I noticed few things:

    Ctrl+/ toggles Folding-enabled or -disabled.

    It is Ctrl+* that expands. Ctrl+Shift+* collapses just like Ctrl+Shift+/

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

    Right click on the circles +/- sign and under Foldings select Collapse All

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

    Ctrl+Shift+/ and Ctrl+Shift+* works great for Aptana Studio 3.

    Apart from that you can always use Window > Preferences > Editors > Foldings to enable it

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

    A "Collapse All" command exists in recent builds (e.g. 3.2 M6) and is bound to Ctrl+Shift+NUM_KEYPAD_DIVIDE by default.

    You can also configure it in Preferences->Editor->Keys.

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