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

0

I have huge files with lots of code blocks, I currently know that by pressing + - expands or collapses the current block, does anyone know how to expand or collapse all at once in Eclipse?

    
asked by anonymous 24.08.2017 / 08:52

2 answers

1

Yes it is by default: Ctrl + Shift + NUM_KEYPAD_DIVIDE .

You can change this shortcut in: Window - > Preferences , and search for "Keys" then "Collapse All".

And to open all the blocks the default is: Ctrl + Shift +   NUM_KEYPAD_MULTIPLY .

    
24.08.2017 / 11:51
2

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

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

To open all blocks, the shortcut is Ctrl + Shift + NUM_KEYPAD_MULTIPLY (key multiply on the numeric keypad).

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

To open all the blocks, it is Ctrl + 0

(Translated from SOen ).

    
24.08.2017 / 11:52