Is there any way to manually create fold points in code in Eclipse? I know how to enable folding and how to set the auto preferences, but i like being able to set my own fold points so I can ignore certain parts of my code. Think regions in VS.
I know there is in VS and NetBeans, but I cannot find a way to set manual fold points in Eclipse.

- 7,851
- 14
- 49
- 61
-
2Check (and vote ) : https://bugs.eclipse.org/bugs/show_bug.cgi?id=63808 – Mr_and_Mrs_D Apr 29 '11 at 13:09
-
2Coffee-Bytes for Eclipse 3.6 & higher: http://stackoverflow.com/questions/8534542/what-code-folding-plugins-work-on-eclipse-3-6 – Yaqub Ahmad Jan 03 '12 at 07:51
4 Answers
I don't think Eclipse has built in manual folding, but I did use a previous version of the following plugin for it.
Per the comment: The plugin has been recompiled for Eclipse 3.5 and is available at the Apache Isis site. A direct download link is also available. It also appears to work for Eclipse 3.6.

- 76,006
- 17
- 150
- 174

- 14,825
- 5
- 34
- 41
-
2
-
Thanks, don't have svn and don't have time to set it up. I'll survive without the code folding – WolfmanDragon Oct 15 '08 at 21:16
-
7General note for anyone reading this: The plugin has been recompiled for Eclipse 3.5 and is available at http://nakedobjects.org/com.cb.eclipse.folding.KAM-3.5.zip at the time of writing this. It also appears to work for Eclipse 3.6. – Vineet Reynolds Aug 18 '10 at 07:02
-
The coffee bytes folding plug-in for eclipse is still alive. But the pages have moved.
An Overview and how to get it can be found here.
I've installed it in eclipse using the update page.
In Eclipse go to Help -> Install new Software
Enter: eclipse.realjenius.com/update-site
Select the plugin and follow on-screen instruction.
I'm still pretty new to eclipse development and had to install mylyn before installing the code folding plugin.

- 41
- 1
-
The URL is dead, but the Google code page is still about: http://code.google.com/p/coffee-bytes/ – JBert Feb 11 '14 at 12:16
I'm new to Eclipse, but since the IDE lets you fold preprocessor directives, you can just do "#if 1 .... #endif" to effectively set up manual folding.