coding beacon

[programming & visualization]

Tag Archives: IDE

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:


What free c++ IDE has the best syntax highlighting

* no perfect IDEs
* QtCreator, Eclipse and VS are good, but bad as text editors.
* the best editors: vi and emacs. No way to understand how good they are until learning one or the other for at least one year.
* vi/emacs are barely IDEs. possible to integrate build and debugging (run step by step, breakpoints, local variables), difficult to setup.

* highligting and completion: vi has good and fast plugins.
* emacs is purely syntaxic, plugins to add semantic are allegedly bad.
* emacs is better at auto indenting than VS, but not as good as Eclipse.
* Eclipse is best (with java). With C++ it is very good as well, but less, because C++ is un-parsable.
* the next best thing : VS with VisualAssistX.
* QtCreator is at least as good as well.

source: Lightness1024 from