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

//********************************************************************
link|improve this question

38% accept rate
feedback

4 Answers

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...

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

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)." )

link|improve this answer
feedback

You should try Practically Macro

link|improve this answer
feedback

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.