我使用 Eclipse 最常做的事情之一就是重新运行上一个程序。我这样做是为了运行 -> 运行历史记录 -> [最上面的项目].
有没有快捷键可以做到这一点?
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.
For CTRL+F11 to work the way you want, you must set (from "Windows/Preferences") the
"Run/debug > Launching : Launch Operation
" setting to:
始终启动之前启动的应用程序
As 托尔比约恩·拉文·安德森 https://stackoverflow.com/users/53897/thorbjorn-ravn-andersen评论中提到,启动最后一个应用程序曾经是(3.2 或之前)的默认行为。
Since (2007 年 3 月),如图所示这个线程 http://dev.eclipse.org/newslists/news.eclipse.platform/msg64996.html:
默认情况下,运行和调试应用程序已简化为运行或调试选定的文件或活动编辑器。
当所选资源(或活动编辑器)不可执行时,用户可以选择启动关联的项目或重新启动之前的启动。
这些设置在Run/Debug > Launching
首选项页面。
用户还可以恢复到始终启动以前的应用程序的 3.2 行为。
Torsten https://stackoverflow.com/users/103412/torsten证实在评论中 https://stackoverflow.com/questions/1151995/is-there-a-shortcut-in-eclipse-to-re-run-the-most-recently-launched-program/1152039#comment81658551_1152039:
Pressing F11 only launches the last application in debug mode.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)