0

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?

HaskellElephant
  • 9,819
  • 4
  • 38
  • 67
PrettyPrincessKitty FS
  • 6,117
  • 5
  • 36
  • 51

2 Answers2

3

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

Eugene Ryzhikov
  • 17,131
  • 3
  • 38
  • 60
1

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

Vikas Patidar
  • 42,865
  • 22
  • 93
  • 106