Is there a shortcut in Eclipse to Re-run the most recently launched program?

后端 未结 9 1860
逝去的感伤
逝去的感伤 2020-11-29 17:03

One of the most frequent thing I do with Eclipse is to re-run the last program. I do it by going to Run -> Run History -> [top most item].

Is there a shortc

9条回答
  •  难免孤独
    2020-11-29 17:39

    For CTRL+F11 to work the way you want, you must set (from "Windows/Preferences") the
    "Run/debug > Launching : Launch Operation" setting to:

    Always launch the previously launched application


    As Thorbjørn Ravn Andersen mentions in the comment, launching the last app used to be (3.2 or before) the default behavior.
    Since 3.3M6 (March 2007), As illustrated by this thread:

    By default, running and debugging applications has been simplified to run or debug the selected file or active editor.
    When the selected resource (or active editor) is not executable, users can opt to launch the associated project or re-launch the previous launch.

    These settings are managed on the Run/Debug > Launching preference page.
    Users can also revert to the 3.2 behavior of always launching the previous application.


    Torsten confirms in the comments:

    Pressing F11 only launches the last application in debug mode.

提交回复
热议问题