Aptana 代码折叠?

发布于 2024-09-01 21:24:30 字数 93 浏览 2 评论 0原文

当我尝试在 Aptana 中使用代码折叠时,它似乎不起作用,我没有更改任何快捷方式,而且我无法让它工作,默认快捷方式是 Ctrl+Numpad_Divide 有什么建议吗?

When i try to use code folding in Aptana it doesn't seem to be working i haven't changed any shortcuts and i can`t get it work the default shortcut is Ctrl+Numpad_Divide any suggestions ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

憧憬巴黎街头的黎明 2024-09-08 21:24:30

Ctrl+Shift+Numpad_Divide 可以使用;)

Ctrl+Shift+Numpad_Divide will work ;)

飘然心甜 2024-09-08 21:24:30

您是否(不小心)在 Aptana 中禁用了代码折叠?

在首选项 -> 中检查它一般->编辑->结构化文本编辑器 ->启用折叠。

您还应该检查您的按键绑定:

首选项 ->一般->按键->切换折叠

您是否有其他应用程序干扰您的热键配置?您最近安装了新程序吗?

Did you (accidentaly) disable code folding in Aptana?

Check it in Preferences -> General -> Editors -> Structured Text Editors -> Enable folding.

You should check your key bindings, too:

Preferences -> General -> Keys -> Toggle Folding

Do you have another application interfering with your hotkey configuration? Have you installed new programs recently?

夜雨飘雪 2024-09-08 21:24:30

我想相关的问题是:您希望折叠哪些文件类型但您没有得到它?我们谈论的是哪个版本的 Aptana:2.x 还是 3.x?

我们在两个版本中都提供 Javascript、CSS、Ruby、PHP、XML、HTML 的折叠。了解您正在处理的文件以及您希望能够折叠但不提供该选项的代码将会很有帮助。

I guess the relevant question back is: what file types are you expecting folding on that you aren't getting it for? And what version of Aptana are we talking about: 2.x or 3.x?

We offer folding on Javascript, CSS, Ruby, PHP, XML, HTML across both versions. It would be helpful to know what file you're dealing with, and what code you expect to be able to be folded that isn't offering you that option.

瑾夏年华 2024-09-08 21:24:30

对我来说是 html。我曾经运行过它,现在它又消失了。但从来没有运作良好。
我没有“结构化文本编辑器”部分(v3.0.6)
编辑:实际上,它是 php,我现在在这里找到它:Window >首选项>阿普塔纳工作室>编辑> PHP。
我已经启用了它,并最终找到了这些蓝色的小图标,可以在奇怪的地方折叠。有时它们按预期工作,有时则不然。它们只出现在我的文档的前几行中,然后就不再出现了(停在 864 行的第 86 行)。

For me it's html. I once had it running, now it's gone again. Never worked well, though.
I don't have a section "Structured Text Editors" (v3.0.6)
Edit: actually, it's php and I now found it here: Window > Preferences > Aptana Studio > Editors > PHP.
I already had it enabled, and eventually found these little blue icons for folding in odd places. Sometimes they work as expected, sometimes they don't. They're only in the top few lines of my document, then no more (stops at line 86 of 864).

娜些时光,永不杰束 2024-09-08 21:24:30

首先 - 据我所知它只适用于最新版本的 Eclipse - 即版本 4.4+ (Luna)。

其次 - 它默认启用,但可以在特定于语言的编辑器设置中进行切换。首选项>阿普塔纳工作室>编辑> [语言:PHP、Ruby 等]

第三 - 如果代码括号中存在语法错误 - 例如缺少 }end,它通常会破坏所有代码折叠整个文件。这非常烦人,因为在其他错误中,代码折叠对于查找此类错误很有用。

First - as far as I can tell it only works with recent versions of Eclipse - i.e. version 4.4+ (Luna).

Second - it's enabled by default, but can be toggled in the language-specific editor settings. Preferences > Aptana Studio > Editors > [Language: PHP, Ruby, etc.]

Third - if there is a syntax error in the code bracketing - e.g. a missing } or end it often breaks all of the code folding in the whole file. This is pretty annoying because in other errors, code folding is useful for finding such errors.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文