Eclipse terminate shotcut

寵の児 提交于 2019-12-24 02:11:13

问题


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.



来源:https://stackoverflow.com/questions/9340538/eclipse-terminate-shotcut

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!