从键盘停止 Eclipse 中正在运行的应用程序?

发布于 2024-11-27 12:59:32 字数 43 浏览 5 评论 0原文

我可以使用 ⌘F11 或 ⇧⌘F11 运行应用程序,但如何从键盘停止它?

I can run an application with ⌘F11 or ⇧⌘F11, but how do I stop it from the keyboard?

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

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

发布评论

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

评论(2

长亭外,古道边 2024-12-04 12:59:32

请参阅奥斯汀在这个问题中的答案:什么是 Eclipse 中终止调试/运行的捷径吗?

该问题中接受的答案仅在您进行调试时才有效。

更新:

我检查了这一点,起初我无法让它工作。事实证明,如果您希望终止命令在 Java 编辑器透视图中可用,则必须转到“窗口”->“Java 编辑器”。
自定义视角 ->命令并将“调试”命令组添加到透视图。

然后,转到窗口->首选项->键,找到终止绑定,并将“何时”更改为“在 Windows 中”。

这对我有用 - 我可以使用 F11 启动应用程序并使用 CTRL-F2 终止。

See the answer from Austin in this question: What is the short cut in eclipse to terminate debugging/running?

The accepted answer in that question only works if you're debugging.

UPDATE:

I checked on this, and at first I couldn't get it to work. It turns out that if you want the terminate command to be available in the Java Editor perspective, you have to go to Window ->
Customize Perspective -> Commands and add the Debug command group to the perspective.

Then, go to Window -> Preferences -> Keys, find the Terminate binding, and change "When" to "In Windows".

That worked for me - I was able to start the app with F11 and terminate with CTRL-F2.

z祗昰~ 2024-12-04 12:59:32

终止命令映射到我的工作区中的 ⌘F2。

The Terminate command is mapped to ⌘F2 in my workspace.

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