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?
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?
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 .
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 ).