开发者

Can't fold comments in Eclipse 3.5.2

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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜