coding beacon

[programming & visualization]

Fold Me Tender, Fold Me True, Never Let Me Go

This post is on custom code folding all right.

Everyone loves visual / ergonomic nicities for coding, however good enough is perfect. So recently I stopped my search for a perfect solution within every IDE I happen to use and my list is as follows:

To squeeze custom code folding capabilities I use the following tricks:

(1) Java — coffee-bytes — IDE: Eclipse

(2) C — standard CDT module — IDE: Eclipse

The earliest mentioning of this hack comes from Tod Gentille. You can read it here:

#if (1) //Anything you want here to identify the region
… The C/C++ Code

(3) Bash scripts — Configurable Fold Handler plugin — IDE: jEdit

(4) R — none — IDE: Eclipse

Not yet as actively working with R as I wish I did, but perhaps I shall be moving to jEdit as well.

More and more often I think about switching to Vim… (or Emacs)… to solve all these problems once and for all.



Emacs: ( some hands-on customization example: )

Vim: ( Manual folding, Syntax folding, Folding by expression, Folding with markers, Diff folding )

Some useful reference on code folding:


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: