How to collapse blocks of code in Eclipse?

Cristian picture Cristian · Aug 10, 2010 · Viewed 152k times · Source

Some days ago my Eclipse was working fine and a +/- appeared in every block that could be collapsed (functions, classes, etc.)... but now it does appear, and I don't know how to activate that feature again.

It's Eclipse Helios, running on a Gentoo Linux box.

Answer

IanH picture IanH · Aug 10, 2010

Preferences -> C++ -> Editor -> Folding ?

Make a right click in the editor window and go to preferences there, then only the editor-relevant section of the preferences dialog will appear. This works for JDT, CDT etc...