PrettyPrincessKitty FS
PrettyPrincessKitty FS

Reputation: 6400

Keeping code folded in Eclipse

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?

Upvotes: 0

Views: 1248

Answers (2)

Vikas Patidar
Vikas Patidar

Reputation: 43349

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

Upvotes: 1

Eugene Ryzhikov
Eugene Ryzhikov

Reputation: 17359

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

Upvotes: 3

Related Questions