score:40

Accepted answer

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.

score:2

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/

score:4

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.

score:4

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.

score:5

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

http://sikuli.org/

score:6

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.

score:9

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.

score:9

i've had success using autohotkey (windows only, though).

score:11

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


Related Query

More Query from same tag