Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't fold comments in Eclipse 3.5.2

Tags:

java

eclipse

Aren't i supposed to be able to do this? Folding is enabled in the Java preferences, but no +/- button appears next to comments. I can fold imports and classes and methods, but not comments. Also, checking the Comments box in "Initially fold these elements" does nothing.

like image 278
herpderp Avatar asked Dec 15 '25 14:12

herpderp


1 Answers

It could be a side-effect of another option setting the code folding for a plugin you don't have.

See bug 153449 for an example (written at the time when Mylyn was called Mylar):

I can enable and disable folding, and I see my editor margin increase/decrease in size providing a gutter for the code folding markers to appear in, but they simply aren't there. Also, all of the menu options to expand all and collapse all are there and enabled but they do nothing.

Actually, I just saw this in my exported preferences:

/instance/org.eclipse.jdt.ui/editor_folding_provider=org.eclipse.mylar.java.ui.editor.foldingprovider

And I don't have Mylar installed. I'm betting this is the problem. I'll try to get rid of it and see what happens.

like image 98
VonC Avatar answered Dec 18 '25 13:12

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!