Aptana 中的折叠/折叠方法?
我不确定我是否遗漏了一些东西,因为我是 Aptana 的新手,但是。我无法折叠我的类方法。我喜欢折叠除我当前在班级中使用的功能之外的所有内容,但每次折叠然后进行编辑时,所有内容都会再次展开。
因此,我猜测在编辑类中的任何方法时,类中的所有内容都会扩展,这是某种功能。有什么办法可以解决这个问题吗?到目前为止我很喜欢 Aptana,但这非常烦人。
I'm not sure if I'm missing something as I'm new to Aptana but. I'm having trouble collapsing my class methods. I like to collapse everything except the function I'm currently working in within my class but everytime collapse and then go to edit, everything expands again.
I'm guessing it's therefore some sort of feature that everything within a class is expanded when editing any method within the class. Is there any way around this at all. I'm loving Aptana so far, but this is extremely annoying.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于 Mac,它是使用数字键盘上的
/
的Shift-Command-/
它不能与 Shift 键旁边的
/
一起使用。我怀疑这也能在 PC 上运行。
For Mac, it's
Shift-Command-/
using the/
on the numpadIt doesn't work with the
/
next to the shift key.I suspect this will work on PC, too.
就像你一样,这个问题断断续续地困扰了我很长一段时间,当我发现答案是多么愚蠢简单时,这更烦人。我能找到的任何文档中都没有写到它。
但你所要做的就是折叠所有你想要折叠的方法、函数、类等,然后点击“ctrl s”进行保存。就是这样。在其他一些编辑器中不需要此步骤,因此我没有立即想到这一点。
此后,如果将鼠标悬停在
+
图标上,您将获得折叠代码的预览。显然,如果您单击
+
代码就会展开。顺便说一下:如果要添加可折叠的项目:
选择窗口->首选项
可以在类型过滤器文本框中键入“折叠”
,或者
选择常规 -> 折叠。 PyDev->代码折叠
检查相应的项目->申请->好的
Like you this one has bugged me on and off for quite a while and it's even more annoying when I found out how stupidly simple the answer is. It's not written in any of the documentation that I can find.
But all you have to do is fold up all the methods, functions, classes etc that you want folded, then hit "ctrl s" to save. That's it. This step is not required in some other editors so it didn't occur to me immediately.
Thereafter if you hover over the
+
icon you get a preview of the folded up code.Obviously if you click on
+
the code expands.By the way: if you want to add to the items that can be folded:
select window -> preferences
either type "folding" in the type filter text box
or
select general -> PyDev -> Code Folding
check the appropriate items -> apply -> ok