我怎样才能绑定特定的按键在Eclipse中不同的启动配置? [英] How can I bind a specific key to different launch configurations in Eclipse?

查看:183
本文介绍了我怎样才能绑定特定的按键在Eclipse中不同的启动配置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对code我的工作在几个启动配置。

I have several launch configurations for the code I work on.

一配置(#1)的意思是运行中最前面的编辑​​器中的文件(即,选定的资源)的单元测试。我真的很希望能够始终使这个被绑定到一个键。

One configuration (#1) means "run the unit tests for the file in the frontmost editor (i.e. selected resource)". I would really like to be able to always make this be bound to a key.

另一个配置(#2)的意思是运行我的工作(在最前面的项目)的服务器,所以我可以交互地测试它。

Another configuration (#2) means "run the server that I am working on (in the frontmost project) so I can test it interactively".

然而,另一个(#3)是指对服务器运行一些自动化验收测试。

Yet another (#3) means "run some automated acceptance tests against the server".

我总是希望有#1带在身边,容易从一个按键上运行。另外,我希望能够运行#2,看它在控制台启动,而当它已经准备好(因为它不是的完全的琐碎自动执行此)命中为#3的关键。

I always want to have #1 close at hand, easy to run from a single keystroke. Plus, I want to be able to run #2, watch it start up in a console, and when it's ready (since it's not entirely trivial to automate this) hit the key for #3.

这可能是类似的提问<一href=\"http://stackoverflow.com/questions/1437323/assigning-a-keyboard-shortcut-for-a-specific-eclipse-build-configuration\">binding一键特定构建配置,但答案看起来非常具体的构建,并作为我使用的PyDev ,我没有建的步骤都没有。

This is possibly similar to the question for binding a key to a specific build configuration, but the answers there look very specific to builds, and as I'm using PyDev, I don't have a "build" step at all.

此外,由于我使用的PyDev,在 pyedit形式的答案_ * 脚本将AP preciated丝毫不亚于本机回答蚀。

Also, given that I'm using PyDev, an answer in the form of a pyedit_* script would be appreciated just as much as a "native" answer for eclipse.

推荐答案

Eclipse的亚军插件,可以让其他人更容易处理的启动配置。它不允许指定密钥绑定到目前推出的配置,但我开了一个功能要求的密钥启动配置绑定

Maybe Eclipse Runner plugin could make it easier for someone to handle launch configurations. It doesn't allow to assign key binding to launch configurations currently but I opened a feature request Key bindings for launch configurations

这篇关于我怎样才能绑定特定的按键在Eclipse中不同的启动配置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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