Ash Ash - 1 year ago 140
Java Question

Keeping Code Collapsed - Eclipse IDE

Just curious if there's a setting somewhere in Eclipse to keep blocks of code collapsed when the class is opened? It's just I'll collapse methods then when the class is re-opened, everything is expanded.


Answer Source

In Windows > preferences:

Java > editor > folding: check all, click apply & then OK.

Maybe this helps: Ctrl + Shift+ NUM_KEYPAD_DIVIDE collapse all methods in a java class.


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download