tags:

views:

308

answers:

2

Is there any way to save my code folding in eclipse?

It's horrible to scroll trough my entire UI declaration. (And yes, I googled it! :)

+1  A: 

Amongst other things, Mylyn allows you to fold/hide content and persist the state.

Mylyn monitors your work activity to identify relevant information, and uses this task context to focus the user interface on the task-at-hand. This puts the information you need at your fingertips and improves productivity by reducing searching, scrolling, and navigation. By making task context explicit Mylyn also facilitates multitasking, planning, reusing past efforts, and sharing expertise.

Once Mylyn is enabled it will start folding/hiding the content. If you have an active task (can use a local task repository) the state should be persisted between sessions. Alternatively you can attach the state to the task (sorry don't have Eclipse to hand to check the exact method to do this) then retrieve it. This is useful if you are sharing tasks with others.

Rich Seller
Can you point me in the right direction where to find this option? Using mylyn 3.4 now.
Henrik P. Hessel
A: 

I know this isn't exactly what you were asking, but this was really helpful for me:

  • Ctrl+Numpad_Multiply can also be used to expand all
  • Ctrl+Shift+Numpad_Divide is bound to collapse all
  • Ctrl+Numpad_Divide toggles folding on and off

(Taken from this post: http://stackoverflow.com/questions/512976/is-there-a-keyboard-shortcut-in-eclipse-to-fold-the-current-method-block )

DutrowLLC