如何在eclipse中映射一个密钥来运行项目运行配置? [英] how do I map a key in eclipse to run the project run configuration?

查看:273
本文介绍了如何在eclipse中映射一个密钥来运行项目运行配置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个新的eclipse项目与一个新的运行配置。此配置在运行配置的下拉菜单中可见,并有1个。我如何分配一个Key来运行这个配置?



我遇到的问题是我使用eclipse来写scala,热键Run as Scala只有当我的编辑器已经打开主类的文件(WTF)时,才能工作。在所有其他文件上,我收到错误消息编辑器不包含主类型,没有任何进一步的信息。所以我创建了一个运行配置,在那里我指定了主文件,但现在我不知道如何在不触摸鼠标的情况下启动此配置。

解决方案

最好使用Alt + R然后T然后1。


I created a new eclipse project with a new run configuration. This configuration is visible on the drop down menu for run configurations and has a 1 on it. How do I assign a Key to run exacty this configuration?

The problem I have is, that I use eclipse to write scala, and the hotkey "Run as Scala" does only work if my editor has the file with the main class opened (WTF). On all other files I get the error message "Editor does not contain a main type" without any further information. So I created a run configuration, where I specified the Main file, but now I don't know how to start this configuration without touching the mouse.

解决方案

works best Alt+R then T then 1.

这篇关于如何在eclipse中映射一个密钥来运行项目运行配置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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