Eclipse中是否有捷径重新运行最近推出的程序? [英] Is there a shortcut in Eclipse to Re-run the most recently launched program?

查看:113
本文介绍了Eclipse中是否有捷径重新运行最近推出的程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Eclipse最常见的事情之一是重新运行最后一个程序。我通过转到运行 - >运行历史记录 - > [最多的项目]



是否有快捷键?



我知道 CTRL + F11 ,但这对我来说不起作用。只有当前活动的类(我正在编辑的源代码的类)没有主要方法时,才会启动最新的程序。如果这样做,它将使用该类作为程序的入口点,而不是运行历史列表中的一个。

解决方案

对于 CTRL + F11 ,按照所需的方式工作,您必须设置(从Windows /首选项)

运行/调试>启动:启动操作设置为:


始终启动以前启动的应用程序







As ThorbjørnRavn Andersen 在评论中提到,启动了最后一个应用程序(3.2或之前)的默认行为。

由于 3.3M6 (2007年3月),如这个线程


默认情况下,运行和调试应用程序已被简化为运行或调试所选文件或活动编辑器。

当所选资源(或活动编辑器)不可执行时,用户可以选择启动相关联的项目或重新启动先前的启动。



这些设置在运行/调试>启动首选项。

用户还可以恢复为始终启动上一个应用程序的3.2行为。



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.

解决方案

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.

这篇关于Eclipse中是否有捷径重新运行最近推出的程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆