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 shortcut key that does this?
I know of CTRL + F11 but this does not work for me. It will launch the most recent program only if the currently active class (the class whose source code I am editing) does not have a main method. If it does it will use this class as the entry point for the program and not the one from the Run History list.
Best Answer
For CTRL+F11 to work the way you want, you must set (from "Windows/Preferences") the
"
Run/debug > Launching : Launch Operation
" setting to: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:
Torsten confirms in the comments: