gpt4 book ai didi

java - 无法在 Eclipse 3.5.2 中折叠注释

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:16:50 25 4
gpt4 key购买 nike

难道我不应该能够做到这一点吗?在 Java 首选项中启用了折叠,但注释旁边没有出现 +/- 按钮。我可以折叠导入、类和方法,但不能折叠注释。此外,选中“最初折叠这些元素”中的注释框也没有任何作用。

最佳答案

这可能是为您没有的插件设置代码折叠的另一个选项的副作用。

参见 bug 153449举个例子(写在 Mylyn 被称为 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.

关于java - 无法在 Eclipse 3.5.2 中折叠注释,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6065846/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com