Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I create a Macro in Eclipse?
For example: I want the combination alt+s will print on the page

share|improve this question

In Java there's the option to create a code template. Like writing sysout + CTRL + space generates System.out.println() text.

Window > Preferences > Java > Editor > Templates

This option seems to be available for several other programming languages.

Is not exactly what you are looking for, since it works with written text but it's usable for your problem as well.

share|improve this answer

You should try Practically Macro

share|improve this answer

I do not think it is possible to do that on Eclipse, however you can use a simple AutoHotkey script:

!s::send //********************************************************************

Alternatively you could also define a hot-string:


Which would replace //* with your predefined string...

share|improve this answer
where do I do that? – Itay Moav -Malimovka Sep 7 '10 at 15:16

Something that you could use is a tool called Texter. It can't really do something like alt+s, but it can convert any text into longer something else (example: "thankyou" to "+{Tab}^{Home}^+{Right}^c{Tab}{BS}Thanks for the email, ^v{BS}." would grab the person's name in an email and say "Thanks for the email, (Name here)." )

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .