What is the shortcut in eclipse to terminate debugging/running? Looking under Preferences -> Keys says Ctrl + F2 but it doesn't work.
What is the shortcut in eclipse to terminate debugging/running? Looking under Preferences -> Keys says Ctrl + F2 but it doesn't work.
As said here, you can add/enable the Debug command group to any perspective using
Window / Customize Perspective > Commands.
(Select the 'Debug' group)
Then open the Debug view in the Java perspective (as a Fast view perhaps) and you should get your Terminate keybinding.
I suppose it was not working because you tried it in a non-debug session.
I also ran into this issue, but still didn't find a proper solution.
Apparently, because multiple user program instances can run together, they (eclipse devs) just didn't put a general terminate key.
As I just saw in their bugs section, they're (maybe) working on showing a dialog for selecting which running program you want to terminate when you click on the terminate button (probably will be Ctrl+F2 as default).
You can see the bug page for this issue for further details and updates. hope it helps anyone.
A lot of the above answers work for some people but maybe not everyone. As Scott Biggs mentioned, command-F2 may not work on macs (note that to get F2 on a mac, you also need to hold down the fn key), so you can reset the binding to shift-F2. Worked for me, as long as you are debugging.