Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

4 Answers 4

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

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

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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