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

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

    There is a hotkey, mapped by default to Ctrl+Shift+NUM_KEYPAD_DIVIDE.

    You can change it to something else via Window -> Preferences, search for "Keys", then for "Collapse All".

    To open all code blocks the shortcut is Ctrl+Shift+NUM_KEYPAD_MULTIPLY.

    In the Eclipse extension PyDev, close all code blocks is Ctrl + 9

    To open all blocks, is Ctrl + 0

提交回复
热议问题