Is there a macro recorder for Eclipse? [closed]

2019-01-03 14:29发布

Is there a good Eclipse plugin for recording and playing back macros?

I've tried this one, but it didn't do me any good- it seemed like it wasn't ready for prime time.

I know about editor templates, but I'm looking for something that I can use to record my keystrokes and then apply multiple times against a wad of text.

This seems like a strange hole in an IDE. Am I missing some built-in facility for this?

9条回答
孤傲高冷的网名
2楼-- · 2019-01-03 14:50

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.

查看更多
Ridiculous、
3楼-- · 2019-01-03 14:50

Emacs+ Version 3.x adds keyboard macros (http://www.mulgasoft.com/emacsplus) to its feature set.

查看更多
手持菜刀,她持情操
4楼-- · 2019-01-03 14:53

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.

查看更多
甜甜的少女心
5楼-- · 2019-01-03 14:55

This seems like a strange hole in an IDE, am I missing some builtin facility for this?

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.

查看更多
女痞
6楼-- · 2019-01-03 15:00

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.

查看更多
一纸荒年 Trace。
7楼-- · 2019-01-03 15:08

This is not an Eclipse-specific one, but it can be used there as well:

http://sikuli.org/

查看更多
登录 后发表回答