Question

If I close Eclipse and then reopen it sometime later, all the code I have folded will be unfolded.

Is there a way to keep it folded?

Was it helpful?

Solution

You can also use

  • Ctrl + Shift + / to fold your editor code.
  • Ctrl + Shift + * to unfold your editor code.

Note: Here * and / would be on Numeric Keypad

OTHER TIPS

It actually depends on the the feature you're using. For Java you can specify which parts should stay folded initially. Unfortunately it only can be comments, header comments, inner types, members and imports.

Here is the screenshot from Eclipse workspace properties for Java > Editor > Folding

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top