在Eclipse IDE中选择运行配置的快捷方式 [英] Shortcut for selecting run configuration in Eclipse IDE

查看:220
本文介绍了在Eclipse IDE中选择运行配置的快捷方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Eclipse工作区,一堆项目。我为每个项目手动创建了一些运行配置(有必要将一些参数传递给VM,因此我不能直接运行,例如使用快捷方式 ALT + SHIFT +



大多数情况下,我只是使用一个运行配置( X T 而我第一次使用运行 - >运行配置 - >(名称) - >运行手动启动它。由于我配置Eclipse总是运行最后一个运行配置(在 F11 CTRL + F11 ),通常就够了。



然而,有时我需要切换到另一个运行配置,然后返回到前一个然后再到另一个。有没有快速的方法?我想看到一个快捷方式,它将显示所有现有运行配置的弹出窗口。通过键入几个字母,我会找到一个适当的字母,并可以通过按 ENTER 立即运行它。我的意思是类似于 CTRL + SHIFT + T CTRL + SHIFT + R 看起来像。



恐怕没有这样的东西。尽管如此,如果获得更有效的建议将不胜感激,因为我无法通过菜单切换运行配置(如上所述)。我可以按 ALT + R N ,然后使用箭头键选择一个运行配置,但不太舒服。

解决方案

你已经自己给出了大部分答案。按 ALT + R N 开始,然后按开始输入所需配置的名称。光标应位于过滤器字段中,因此在输入时会逐渐减少启动配置列表。当您缩小到1时,请通过 ALT + R 完成选择。



BTW:谢谢为了提醒,我也是在这个特殊用例中使用鼠标的方式太多了。我会停止这样做,现在我给了答案:)


I have an Eclipse workspace with a bunch of projects. I manually created some run configurations for each project (it's necessary to pass some arguments to VM, so I can't just run it directly, e.g. using shortcut ALT+SHIFT+X, T in the specific file).

Most of the time, I just use one run configuration (whereas for the first time I manually launch it using Run -> Run configurations -> (name) -> Run). Since I configured Eclipse to always run the last run configuration (on F11 or CTRL+F11), it's usually enough.

However, sometimes I need to switch to a different run configuration and then back to previous one and then to a different one etc. Is there a quick way to do it? I'd like to see a shortcut, which would display pop-up window with all existing run configurations. By typing first few letters, I'd find an appropriate one and would be able to immediately run it by pressing ENTER. I mean something similar to what CTRL+SHIFT+T or CTRL+SHIFT+R looks like.

I'm afraid there's not something like that. Nonetheless, any advice on how to get more effective would be greatly appreciated, because I'm bored of switching run configurations via menu (as I described above). I can press ALT+R, N and then select a run configuration using arrow keys, but it's not really that comfortable.

解决方案

You already gave most of the answer yourself. Start by pressing ALT+R, N and then simply start typing the name of the configuration you want. The cursor should be positioned in the filter field and thus incrementally reduce the list of launch configurations as you type. When you've narrowed it down to 1, complete the selection by ALT+R.

BTW: thanks for the reminder, I, too, was using the mouse way too much in this particular use case. I will stop doing so, now that I gave the answer :)

这篇关于在Eclipse IDE中选择运行配置的快捷方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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