如何在 Eclipse ant 编辑器中启用撤消功能?

发布于 2024-07-22 06:03:57 字数 161 浏览 4 评论 0原文

在 Eclipse 的 ant 编辑器中,撤消对我不起作用。 当我按 Ctrl-Z 时,没有任何反应。

是否可以以某种方式启用撤消或者这是一个错误?

我在 Windows XP Professional 上使用 Eclipse 3.4.2 (Ganymede)。

Undo is not working for me in ant editor in eclipse.
When I press Ctrl-Z nothing happens.

Is it possible to enable undo somehow or is this a bug?

I am using Eclipse 3.4.2 (Ganymede) on Windows XP Professional.

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

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

发布评论

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

评论(3

恰似旧人归 2024-07-29 06:03:57

是的,撤消操作应该可以在 Ant 编辑器中完美运行。
对于 Ctrl-Z 不起作用可能意味着:

  • 快捷方式已分配给另一个操作(Windows > Preferences > General > Keys),
  • 撤消缓冲区大小不知何故为“0”(Windows > 首选项 > 常规 > 编辑器 > 文本编辑器
  • 插件以某种方式“窃取”自身的关键事件

尝试全新安装,并检查最新的 Galileo( 3.5RC2) 安装以查看问题是否仍然存在。


注意:zvikico

快速搜索,以下错误可能可以解释您的情况:

  • 267780 [ant 编辑器] 光标移动后删除行无法撤消
  • 247434 无法撤消 Ant 编辑器中行的删除,只能使用“适用于 Java 开发人员的 Eclipse IDE”,使用 Eclipse Classic 您不会出现此行为

,最后:

  • 239115 撤消功能在 ant 编辑器中不再起作用,主要是因为 WTP 问题,仅在3.5中解决

Yes undo should be working perfectly in an ant editor.
For Ctrl-Z to not workcould mean:

  • the shortcut has been assigned to another action (Windows > Preferences > General > Keys)
  • the undo buffer size is somehow at '0' (Windows > Preferences > General > Editors > Text Editor)
  • a plugin somehow 'steals' the key event for itself

Try a fresh install, and check also with a latest Galileo (3.5RC2) install to see if the problem persist.


Note: zvikico mentions the existence of a known bug with ant editor in 3.4.2

After a quick search, the following bugs might explain your situation:

  • 267780 [ant editor] delete line cannot be undone after cursor has been moved
  • 247434 Failed to undo removal of line in Ant editor, only with 'Eclipse IDE for Java Developers', with Eclipse Classic you don't get this behavior

and finally:

  • 239115 Undo functionality does not work anymore in the ant editor, mainly because a WTP issue, only solved in 3.5
锦欢 2024-07-29 06:03:57

我看到这篇文章很旧了,但我正在为通过搜索引擎找到此文章的人添加回复。

当我对代码的一部分做了一个小更改,而这反过来又在代码的另一部分中触发了意外的无限循环时, Ctrl-Z 停止在 Eclipse 中为我工作。

  • Ctrl-Z 停止工作时,我使用 Windows 任务管理器终止了我一直在测试的应用程序,然后我使用了 system.out.println( ) 来识别触发无限循环的代码部分。
  • 然后我禁用了该部分代码,这又导致 Ctrl-Z 和其他所有内容再次开始工作。
  • 我能够从那里完成调试。

I see this post is very old, but I am adding a response for the people who find this through the search engines.

Ctrl-Z stopped working in eclipse for me when I made a small change in one part of my code which in turn triggered an unexpected infinite loop in a different part of my code.

  • I used the windows task manager to kill the application that I had been testing when Ctrl-Z had stopped working, and then I used system.out.println() to identify the part of the code where the infinite loop was being triggered.
  • I then disabled that section of code, which in turn caused Ctrl-Z and everything else to start working again.
  • I was able to finish debugging from there.
倾其所爱 2024-07-29 06:03:57

如果 CTRL-Z(撤消)不再起作用,您可以尝试一下。 它对我有用:
转到首选项 -> 一般-> 键并单击应用按钮或恢复默认值按钮

If the CTRL-Z (undo) does not work anymore, you might try that. It worked for me:
go to Preferences -> General -> Keys and click on apply button or restore defaults button

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