Eclipse plugin to roll up if and for?

The eclipse Coffee-Bytes Code Folding Plug-in (which is mentioned by htw) is no longer available.

Starting with release 3.0, Eclipse allows folding in its text editor, and that include code folding for classes, comments, imports, but not for if or loop structures.

alt text
(source: ibm.com)

A simple double click at the beginning or end of a block ({) is enough to highlight the all block.


In Eclipse you can use Shift+Alt+ to mark the surrounding block to the current block
(and Shift+Alt+ to narrow down again).

Then will place you at the beginning of the block, and at the end.

(Untested, from memory, but VERY handy).