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 everything, and selectively expand blocks to look at them.
If you are using PyDev in Eclipse, its Ctrl 0 and Ctrl 9 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.
Update for Eclipse Mars on Windows 10 (using inside "Search View"): Numpad * - expands all in the selected folder, Numpad + - expands ONE level below the selected folder, Numpad - - collapses previous expanded folder (or if ALL was expanded then next underlying level along WITH the expanded folder down below) in the ...
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With