Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse - Save Folding on Quit

Tags:

eclipse

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! :)

like image 238
Henrik P. Hessel Avatar asked Jul 12 '09 09:07

Henrik P. Hessel


1 Answers

The question is very similar to Is there a way to collapse all code blocks in Eclipse? .

I'm re-posting my answer there here.


The question is a bit old, but let me add a different approach. In addition to the above hot-key and utility approaches, there are default preference settings that can be toggled.

As of Eclipse Galileo (and definitely in my Eclipse Version: Indigo Service Release 2 Build id: 20120216-1857) language specific preferences can open up new files to edit which are already collapsed or expanded.

Here is a link to Eclipse Galileo online docs showing the feature for C/C++: http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.cdt.doc.user/reference/cdt_u_c_editor_folding.htm .

In my Eclipse Indigo I can open the Folding Preferences window via : menu/ Window/ Preferences/ Java/ Editor/ Folding and set all options on so I can open files by default that are completely collapsed.

like image 120
donfede Avatar answered Sep 21 '22 17:09

donfede