問(wèn)題描述
我正在處理的代碼有幾個(gè)啟動(dòng)配置.
一個(gè)配置(#1)意味著在最前面的編輯??器(即選定的資源)中運(yùn)行文件的單元測(cè)試".我真的很希望能夠始終將其綁定到一個(gè)鍵.
另一個(gè)配置 (#2) 的意思是運(yùn)行我正在處理的服務(wù)器(在最前面的項(xiàng)目中),以便我可以交互式地對(duì)其進(jìn)行測(cè)試".
還有一個(gè)(#3)的意思是對(duì)服務(wù)器運(yùn)行一些自動(dòng)化的驗(yàn)收測(cè)試".
我總是希望 #1 近在咫尺,只需按一下鍵即可輕松運(yùn)行.另外,我希望能夠運(yùn)行 #2,在控制臺(tái)中觀察它的啟動(dòng)情況,并且當(dāng)它準(zhǔn)備好時(shí)(因?yàn)樽詣?dòng)化它并不是完全微不足道的)按下 #3 的鍵.p>
這可能類似于 binding 的問(wèn)題特定構(gòu)建配置的關(guān)鍵,但那里的答案看起來(lái)非常特定于構(gòu)建,因?yàn)槲艺谑褂?PyDev,我根本沒(méi)有構(gòu)建"步驟.
此外,鑒于我使用的是 PyDev,pyedit_*
腳本形式的答案將與 eclipse 的本機(jī)"答案一樣受到贊賞.
也許 Eclipse Runner插件可以使某人更容易處理啟動(dòng)配置.它目前不允許將鍵綁定分配給啟動(dòng)配置,但我打開(kāi)了一個(gè)功能請(qǐng)求 啟動(dòng)配置的鍵綁定
I have several launch configurations for the code I work on.
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.
Another configuration (#2) means "run the server that I am working on (in the frontmost project) so I can test it interactively".
Yet another (#3) means "run some automated acceptance tests against the server".
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.
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.
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.
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
這篇關(guān)于如何將特定鍵綁定到 Eclipse 中的不同啟動(dòng)配置?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!