Eclipse Terminate Keyboard Shortcut

前端 未结 6 551
终归单人心
终归单人心 2021-01-11 16:15

How do I get eclipse to terminate? I use the keyboard shortcut Ctrl+F11 to run a program and I cannot enable the terminate hotkey, since in development

相关标签:
6条回答
  • 2021-01-11 16:21

    You can basically use Ctrl+F2 to terminate Eclipse.

    0 讨论(0)
  • 2021-01-11 16:23

    I think you are looking for this:

    1. Go to Properties -> General -> Keys
    2. Look for "Stop" in my case there are 3, use the one under Category "Launch Bar".
    3. Assign your hotkey and set "In Windows" under the "When" option and apply.

    This terminates the running process, even if the hotkey is called "Stop", wich is somewhat confusing, since there is another hotkey called "Terminate".

    Regards!

    0 讨论(0)
  • 2021-01-11 16:38

    Since CTRL + F2 does not work unless you have:

    • previously activated the debug view and
    • selected the process that you want to terminate

    The best that I can come up with is to use the "Keys" preferences to assign CTRL + SHIFT + F2 to "Show View Debug", then you can type the following:

    CTRL + SHIFT + F2 (activates the debug view) DOWN (move cursor down onto the first process) CTRL + F2 (Terminate) F12 (activate editing window)

    0 讨论(0)
  • 2021-01-11 16:39

    Addendum: Unfortunately there is no keyboard shortcut for the Terminate/Disconnect All option mentioned below and you cannot manually set one. But at the very least, you should be able to terminate all launches with just one mouse click with the instructions below. I would consider this a solution to a significant part of your problem, which is wasting a lot of time clicking the red Terminate square.

    To terminate all launches:

    First Time Setup:

    • In the menus, click Window > Show View > Other...
    • Type debug in the search box and select Debug > Debug
    • Click OK. The Debug pane will open.

    Following which, how to terminate all launches:

    • Open or switch to the Debug pane.
    • Right-click on any of the items in the pane to get the context menu.
    • Click Terminate/Disconnect All.

    Tips:

    • If the Console pane is annoying you by opening automatically, either separate the Debug pane from the Console pane (so they don't share the same section) or disable these two buttons in Console pane's toolbar:
      • Show Console When Standard Out Changes
      • Show Console When Standard Error Changes
    • Some of the items in the Debug pane may not enable the option to terminate all. In this case, try right-clicking other items that look different.

    Thanks to this SO Q&A, but it wasn't fully clear: Eclipse : How to terminate all applications at once?

    0 讨论(0)
  • 2021-01-11 16:43

    I manage to make it work, binding terminate command to PAUSE key with "when" clause to "In window". It works if in debug, not in run. Hope it helps

    0 讨论(0)
  • 2021-01-11 16:44

    Use Ctrl+F2 to terminate the current running server, not eclipse. There is no shortcut key to terminate eclipse.

    Try here:

    http://www.developersbook.com/eclipse/eclipse-keyboard-shortcuts-2.php

    http://eclipse-tools.sourceforge.net/Keyboard_shortcuts_%283.0%29.pdf

    Yes you are right. In fact if you check Windows --> Preferences --> Keys --> Terminate, "Terminate and relaunch", it is showing for server, not eclipse.

    0 讨论(0)
提交回复
热议问题