Stopping a running application in Eclipse from the keyboard?
I can run an application with ⌘F11 o开发者_Python百科r ⇧⌘F11, but how do I stop it from the keyboard?
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.
The Terminate command is mapped to ⌘F2 in my workspace.
精彩评论