Eclipse Code Folding using Coffee Bytes Tutorial

Code Folding

The Coffee-Bytes plugin by Alex Popescu can add folding functionality to Eclipse IDE.

download link is here.

 

the .zip file should contain a “com.cb.eclipse.folding” folder. extract it to “eclipse\plugins”, so you should have now a “c:\eclipse\plugins\com.cb.eclipse.folding\” folder with several files inside.

Start Eclipse.

Window > Preferences > Java > Editor > Folding
Change to CoffeBytes

Enable User Defined Regions

Set your user defined region

You’ll probably have to reload (close and reopen) any editor windows, and it’s ready. use it like:

// {{ folded region name

code here

// }}
Follow me

Etay Cohen-Solal

Development Specialist, Artist and Activist

Personal Website
Follow me

Latest posts by Etay Cohen-Solal (see all)

  

3 thoughts on “Eclipse Code Folding using Coffee Bytes Tutorial

  1. S.K.Graham

    This looks great, but I can’t get it to work. I copy to the plugins folder, restart eclipse, it does not pick up the plugin. I’ve also tried the “dropins” folder. Nothing seems to work, I just get the same old options in prefs>java>editor>folding.

    What could I be missing? An environment variable? Read permissions on the file?

    I am using Eclipse Version: Indigo Service Release 2
    Build id: 20120216-1857

    Reply
    1. S.K.Graham

      Before you waste anytime trying to answer, I already figured it out. I think it has something to do with file/folder permissions. Running eclipse once as administrator allowed it to pick up the plugin. Afterward running eclipse normally the plugin still works.

      Reply

Leave a Reply

Connect with:

Your email address will not be published.


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code lang=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" extra="">