Eclipse terminate shotcut

2019-07-15 10:18发布

问题:

I am familiar with What is the short cut in eclipse to terminate debugging/running?. But nothing is working for me. I wish to be able to terminate a running program in the Java perspective in the same manner I able to do so on the Debug perspective with CTRL+F2.

If one could provide a specific details of how to achieve it, It will be really great!

UPDATE

To clear any doubts, Assume a toy example when all we have is as following:

public class ToyExample {
    public static void main(String[] args) {
        while (true);
    }
}

I wish to execute (run) the program above normally (CTRL+F11), i.e. not under Debug mode, and have the ability to terminate it by CTRL+F2 (or another keyboard-shortcut).

回答1:

Try enabling the "Debug" command group in the "Java " perspective:

Window -> Customize Perspective -> Command Groups Availability



回答2:

Maybe you have some other plugin command overriding Ctrl+F2 shortcut? Check additional plugins you have installed on your Eclipse.