What code folding plugins work on Eclipse 3.6?

22,497

Solution 1

For what it's worth, check my answer to this post to make it work in 3.7 (Indigo)

getting an overview perspective of all methods in a class in Eclipse

[Copy-paste with some edits:]

The Coffee Bytes plugin is mentioned is no longer available at the referred locations. But, it seems that Bartosz Kosarzycki has posted an updated version yesterday [=Sunday, December 4, 2011]:

http://kosiara87.blogspot.com/2011/12/how-to-install-coffee-bytes-plugin-in.html

Solution 2

I found out that this Coffee bytes works in Helios. After I try to install it in my helios and disable and enable the folding. It works like a charm.

Just ask me of the details if you can't make it work.

UPDATED For Helios

Again like the other answer suggested follow this link and the steps provided

http://kosiara87.blogspot.com/2011/12/how-to-install-coffee-bytes-plugin-in.html

then in your java editor, right click on the left edge where the options that include Folding will appear, and select disable folding.Right after, select enable folding. Thats it! I am using Helios and coffee bytes is working!

Send me your feedback if still not working.

Solution 3

Eclipse brings some out-of-the-box code folding features. You can check them at Window -> Preferences -> Java -> Editor -> Folding (Reference here). When you have the "Enable folding", you'll see a minus sign a the right border of the editor panel at the begining of every foldable block of code. Clicking on that sign will allow you to fold or expand this block of code..

Aditionally, you can, at Window -> Preferences -> Java -> Editor enable the "Only show the selected Java element" option. This way, you'll see at the editor frame only the element (as in method or class) you have selected at the navigation panel. Reference here.

Solution 4

I am not sure what #region is, but if you are looking for something that will allow you to see blocks of code and you would like to see where a particular block starts and ends easily, I would recommend the editbox plugin. You can use along with the eclipse code folding to get the best out of eclipse. The Edit box plugin is here:

http://editbox.sourceforge.net/

For making good use of the edit box, download a theme from here:

http://sourceforge.net/projects/editbox/forums/forum/1036090

Share:
22,497
Yaqub Ahmad
Author by

Yaqub Ahmad

My top Answer1, Answer2 on stackoverflow. My top question1, question2 on stackoverflow.

Updated on September 24, 2020

Comments

  • Yaqub Ahmad
    Yaqub Ahmad almost 4 years

    I am new to java development environment and I find it difficult to manage my code properly. .Net provides the #regions which is a good solution for code management.

    I am using Eclipse environment for java development. I tried the Coffee-Bytes but the Coffee-Bytes code folding is not working in Eclipse 3.6, at least on my side. I have configured it following this, but it does not work. Can someone guess what can be the issue? is there some other code folding plugin for Eclipse?

  • Yaqub Ahmad
    Yaqub Ahmad over 12 years
    Not works for me, i already have the same version coffee-Bytes: incubator.apache.org/isis/com.cb.eclipse.folding.KAM-3.5.zip
  • Yaqub Ahmad
    Yaqub Ahmad over 12 years
    Thanks for the answer. I am already using the "Eclipse Folding features", but i was looking for something like #region as mentioned in the question.
  • Yaqub Ahmad
    Yaqub Ahmad over 12 years
    Thanks for sharing, but i am afraid that it is not the alternate of #region: msdn.microsoft.com/en-us/library/9a1ybwek%28v=vs.71%29.aspx
  • skinnypinny
    skinnypinny almost 12 years
    Doesnt work properly in eclipse 4.2. I keep seeing a new exception in my error log every time i click in the editor window.
  • The Nail
    The Nail almost 12 years
    @codingcrow in this topic you mention that it works in Juno a.k.a Eclipse 4.2. Did you need to fix anything to make it work?
  • Mysticial
    Mysticial almost 12 years
    It would be better if you actually included the details in your answer.
  • vine
    vine almost 12 years
    @Mysticial already updated the answer, kindly tell me the result, and will be glad to assist you further.
  • Stefan
    Stefan over 7 years
    I created an update site for the old coffee bytes code folding plugin that works with Eclipse Neon: github.com/stefaneidelloth/EclipseFolding/raw/master/…
  • Stefan
    Stefan almost 7 years
    I created an update site for the old coffee bytes code folding plugin: github.com/stefaneidelloth/EclipseFolding/raw/master/…