Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fold if/else sub blocks in eclipse

Though I have looked at these two questions, fold sub blocks and manually fold code.

But it doesnt seems to work, because either the links are broken or some of the resources are unavailable.

In my project, I have lot of functions, which include literally millions of if/else statements. Now, whenever I have to look for a Log, I have to shuffle the entire code. Most of the time is wasted in the if/else code blocks. It would be really helpfull, if I could fold these if/else sub blocks. There is no inbuilt feature in eclipse though. Is there any plugin that could help for the purpose.

like image 771
Sahil Mahajan Mj Avatar asked Dec 22 '12 06:12

Sahil Mahajan Mj


1 Answers

Try this..

Preferences -> Java -> Editor -> Folding.

Set folding settings here by checking the boxes as your need..

like image 101
Mohammed mansoor Avatar answered Sep 20 '22 07:09

Mohammed mansoor