Skip to content

tlcsdm/eclipse-folding

Repository files navigation

Folding

This plugin enhances code folding in Eclipse IDE, based on and maintained from Coffee-Bytes Code Folding.
It allows defining custom foldable regions in Java, XML, and other files using //[start] … //[end] comments, making code more organized and easier to navigate.

Fork of the coffee-bytes code folding plugin. Original source: https://code.google.com/archive/p/coffee-bytes/

Now Support Eclipse 2024-06 and later, Mac OS X, Linux (with nautilus) and Windows.

Features

  • Folding support for classes, methods, field groups, imports, comments, and documentation.
  • Custom Region Folding: Define your own folding markers (default [start] / [end]).
  • Deep integration with Eclipse JDT folding preferences to enable/disable folding for specific elements.
  • Customizable folding strategies in Preferences: Configure in Window → Preferences → Java → Editor → Folding.
  • Preserves Native Folding: Extends Eclipse’s folding system without removing built-in features.

Use

  1. Preferences Click Window → Preferences → Java → Editor → Folding
    screenshot

Build

This project uses Tycho with Maven to build. It requires Maven 3.9.0 or higher version.

Dev build:

mvn clean verify

Release build:

mvn clean org.eclipse.tycho:tycho-versions-plugin:set-version -DnewVersion=2.0.0 verify

Install

  1. Add https://raw.githubusercontent.com/tlcsdm/eclipse-folding/update_site/ as the upgrade location in Eclipse.
  2. Download from Jenkins
  3. ← Drag it to your eclipse workbench to install! (I recommand Main Toolbar as Drop Target)

About

This plugin enhances code folding in Eclipse IDE.

Topics

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages