Aptana 3 JavaScript 代码折叠/大纲
我有最简单的代码。
function test() {
}
function anotherFunction() {
}
在 Eclipse JavaScript 或 Spket JavaScript 编辑器中,它们都会向我显示折叠点,每个函数前面都有一个。然而,在 Eclipse 3.7 Windows 7 x64 上的 Aptana Studio 3.0.3 中,无论我做什么,Aptana 都没有向我显示它可以折叠这两个功能。此外,无论出于何种原因,大纲也始终为空白。我安装了新的 Eclipse 副本和新的 Aptana 3 副本。但这没有帮助。
Aptana 中的代码折叠可以在我的 Mac 上运行,但大纲视图仍然显示空白。
有其他人经历过这种情况并有解决问题的建议吗?
I have the simplest code possible.
function test() {
}
function anotherFunction() {
}
In the Eclipse JavaScript or Spket JavaScript editor, both of them will show me to folding points, one in front of each function. Yet in Aptana Studio 3.0.3 on Eclipse 3.7 Windows 7 x64, no matter what I do Aptana just doesn't even show me it can fold these two functions. Also outline is also always blank for whatever reason. I have fresh copy of Eclipse along with fresh copy of Aptana 3 installed. But it doesn't help.
Code folding in Aptana works on my mac, but outline view still shows blank.
Has anybody else experienced this and got any tips on solving it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
所以我以为我永远无法解决这个问题,但实际上它得到了解决,哈哈。
无论如何,问题是 Aptana 只会在所涉及的项目具有某种 Web 性质(例如 Web、PHP、Python、Ruby、Rails)时完全启用其 JavaScript 编辑器。我的想法/灵感来自此页面 有趣的是,显然org.eclispe.wst.jsdt.core.jsNature(如果您在 Eclipse 中创建 JavaScript 项目,则这是默认值)对于 Aptana 来说不够“Web”,无法启用其编辑器。
这也是为什么它在 mac 上运行但在 Windows 上不起作用的原因。
So I thought I would never be able to figure this question out, but actually got it working lol.
Anyways the problem is Aptana would only fully enable their JavaScript editor if the project in question is of some kind of web nature, such as Web, PHP, Python, Ruby, Rails. I got my idea/inspiration from this page The funny thing is, apparently org.eclispe.wst.jsdt.core.jsNature (which is the default if you create a JavaScript project in Eclipse) is not "web" enough for Aptana to enable its editor.
This is also the reason why it worked on mac but not Windows.