Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(9)
我已经成功使用 AutoHotKey(不过仅限 Windows)。
I've had success using AutoHotKey (Windows only, though).
有一个名为 Eclipse Monkey 的插件,它允许编写在IDE。 大约一个月前由于缺乏兴趣而终止。
它基于一个名为 Groovy Monkey 的旧插件。 如果你用谷歌搜索,你仍然可以获得它。 Aptana 团队提供了一些有关使用它的更多信息。
请注意,这允许编写脚本,但不能记录操作。
There was a plug-in called Eclipse Monkey which allowed writing scripts that execute inside the IDE. It was terminated about a month ago due to lack of interest.
It is based on an older plug-in called Groovy Monkey. If you google it, you can still get it. The Aptana team has some more information on using it.
Note that this allows writing scripts, but not recording actions.
这是一个常见问题。 Eclipse 跟踪器中为此打开了大约四个错误。 不幸的是,您可能会在 v4.0 或更高版本的 Eclipse 中看到宏。
This is a common problem. There are around four bugs opened in Eclipse tracker for this. Unfortunately you would probably see macros in Eclipse in v4.0 or later.
Emacs+ 版本 3.x 添加了键盘宏 (http://www.mulgasoft.com/emacsplus)功能集。
Emacs+ Version 3.x adds keyboard macros (http://www.mulgasoft.com/emacsplus) to its feature set.
我在过去一个月左右整理了一些内容,以便您可能会觉得有用。 它有局限性,因为 Eclipse 编辑器/命令在设计时没有考虑到宏支持,但我认为它工作得相当好。 几天前我刚刚在 SourceForge 上发布了实用宏。 它需要 Eclipse 3.4。
I put something together over the last month or so that you may find useful. It has limitations since the Eclipse editor/commands weren't designed with macro support in mind, but I think it works reasonably well. I just posted Practical Macro at SourceForge a couple of days ago. It requires Eclipse 3.4.
这不是 Eclipse 特定的,但也可以在那里使用:
http://sikuli.org/
This is not an Eclipse-specific one, but it can be used there as well:
http://sikuli.org/
对于 Windows 计算机上的简单文本扩展,您可以使用 AutoHotkey。 它不像大多数宏工具那么强大,但由于它不与任何一个程序绑定,因此可以在其他编辑器、电子邮件等中使用。
例如,如果我输入“;;ln”,AutoHotkey 会立即发送击键来删除此宏并将其替换为“System.out.println();” 将光标置于括号之间。
For simple text expansion on a Windows computer, you could use AutoHotkey. It's not as powerful as most macro tools, but since it's not tied to any one program, it can be used in other editors, emails, etc.
For example, if I type ";;ln" AutoHotkey instantly sends the keystrokes to delete this and replace it with "System.out.println();" with the cursor in between the parentheses.
仅供记录,还有另一个项目名为 MacroSchmacro 执行 Eclipse 宏,但它不记录许多重要的事情(例如搜索导航)。 它也非常慢。
Just for the record, there is another project called MacroSchmacro that does Eclipse macros, but it doesn't record many important things (like searching to navigate). It is also extremely slow.
说到 Emacs,jEdit 具有非常强大的宏功能。 有很多高质量的宏和插件,并且已经内置了几个宏。您甚至可以使用bean脚本添加一些逻辑,这类似于VBA。 所以,你可以写出非常强大的东西(很多人都这样做过)。
jEdit 显然是一个单独的编辑器,但我认为值得一试。 请参阅http://www.jedit.org/
Talking about Emacs, jEdit has a very strong macro facility. There are a lot of high quality macros and plug-ins, and several macros are already built it in. You can even add some logic using bean scripting, which is analogous to VBA. So, you can write very powerful stuff (any many people have done so).
jEdit is obviously a separate editor, but I think it's worth a shot. See http://www.jedit.org/