从键盘停止 Eclipse 中正在运行的应用程序?
我可以使用 ⌘F11 或 ⇧⌘F11 运行应用程序,但如何从键盘停止它?
I can run an application with ⌘F11 or ⇧⌘F11, but how do I stop it from the keyboard?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请参阅奥斯汀在这个问题中的答案:什么是 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.
终止命令映射到我的工作区中的 ⌘F2。
The Terminate command is mapped to ⌘F2 in my workspace.