自动化 Eclipse 任务

发布于 2024-11-01 01:34:12 字数 467 浏览 0 评论 0原文

我目前正在寻找在 Eclipse 中自动执行某些任务的方法。

例如,假设我有几个 ant 文件,我希望每小时运行几次。能够为每个程序分配一个热键,这样我就可以轻松运行它们,而无需单击,调出上下文菜单并再次单击,这将为我的生活带来欢乐。

其他示例是构建/运行配置。我的项目中有几个,我希望有一种方法可以使用不同的热键配置来运行它们。

此外,我目前正在从事的项目的本质涉及大量的实验和尝试,因此必须经常单击和使用鼠标肯定会让我发疯。还有其他类似的事情我也希望自动化(例如,每次我进行提交时,我还想在项目的文件夹上运行一些命令等)。

是否有一些适用于 Eclipse(或外部)的工具可以以某种方式让我自动执行此类任务? Vim for Eclipse 对我有帮助吗?

经过几年的编码,我感觉自己已经碰壁了。我得出的结论是,我在鼠标上浪费了太多时间。是的,我知道很多 Eclipse 操作都有相应的热键,但很多其他操作则没有。我想要最终的解决方案!

I'm currently looking for ways to automate some tasks in Eclipse.

For instance, let's say I have a couple of ant files that I'll want to run a couple of times per hour. Being able to assign a hot key to each one of them, so that I could easily run them without having to click, bring the context menu up and click again would bring joy into my life.

Other example would be build/run configurations. I have a couple of them on my project and I'd love to have a way of running each one of them with a different hot key configuration.

Moreover, the very nature of a project I'm currently working on involves a lot of experimentation and trying, so having to click and use my mouse a lot is definitely driving me insane. There are other similar things that I would like to get automated as well (for example, each time I do a commit I'd like to also run some command over my project's folder, etc).

Is there some tool for Eclipse(or outside it) that'll somehow allow me to automate these kinds of tasks? Would Vim for Eclipse help me anyhow?

After some years coding I feel like I have hit a stone wall. I came to the conclusion that I am losing way too much time with my mouse. Yes, I know that a lot of Eclipse actions have correspondent hot keys, but a lot of others don't. I want the ultimate solution !

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

魔法唧唧 2024-11-08 01:34:12

有多种解决方案:

  1. 使用控制台。控制台允许记住最后的命令(在 Unix 上,您甚至可以搜索)。因此,它不是 mouse-fu,而是 Alt-TabUpReturn

  2. Eclipse Monkey 用于编写 Eclipse 脚本。不确定它是否仍然有效,但可能会。

  3. Sourceforge 上有实用宏。不过,我找不到任何文档。

EclipseShell 也可能有效,但不确定。

There are several solutions:

  1. Use a console. Consoles allow to remember the last commands (on Unix, you can even search). So instead of mouse-fu, it's Alt-TabUpReturn

  2. There was Eclipse Monkey to script Eclipse. Not sure if it still works but it might.

  3. On Sourceforge is Practical Macro. No documentation that I could find, though.

EclipseShell might also work, not sure.

○闲身 2024-11-08 01:34:12

更新(2022 年)。亚伦在他的回答中提供了很多选择。似乎其中任何一个都在起作用。我要尝试旧的蚂蚁构建器。

https://www.vogella.com/tutorials/ApacheAnt/article.html

Update (Year 2022). Aaron has provided many options in his answer. It seems any of those are working. I am going to try the old ant builder.

https://www.vogella.com/tutorials/ApacheAnt/article.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文