JEdit-Like Macros in Eclipse? [message #214531] |
Fri, 08 June 2007 11:37 |
Eclipse User |
|
|
|
Originally posted by: edward.tanguay.de
I'm coming from JEdit to Eclipse.
JEdit has wonderful macros which are executed with the space bar.
This means I type "forea" and press the space bar "foreach" code block
pops in.
I have tried ActiveAid macros but Eclipses automatic rendering of the "{"
gets in the way and messes them up a they are being inserted character by
character. Therefore, I need some internal macro soluton within Eclipse.
I understand that Eclipse has no macros (?). Is this true?
I have read about a number of macro solutions for Eclipse.
Which is the easiest and simplest? I don't need a script language to
program them, I just want to pop in code blocks when I type a little code
and press the space bar.
Thanks,
Edward Tanguay
www.tanguay.info
|
|
|
Re: JEdit-Like Macros in Eclipse? [message #214539 is a reply to message #214531] |
Fri, 08 June 2007 11:49 |
Eclipse User |
|
|
|
Originally posted by: krzysztofHMMMMdaniel.gmail.com
Hello Edward
I think you mean content assist.
First of all in eclipse it is triggered by the Ctrl-Space.
Then you should go to window->preferences->java->editor->templates.
There are the things you are interested in.
Typing forea and pressing Ctrl-Space works.
Regards
--
Chris
|
|
|
Re: JEdit-Like Macros in Eclipse? [message #214546 is a reply to message #214539] |
Fri, 08 June 2007 11:58 |
Eclipse User |
|
|
|
Originally posted by: edward.tanguay.de
Thanks, that works great, I'll have to try it on my next JAVA project.
But I am using *PHP* at the moment (with phpeclipse) and under
Window|Preferences I find not "Content Assist" but "Code Assist" which
seems much simpler and the CTRL-Space does not work in .php files.
Are there any macro / Content Assist options for PHP?
Thanks,
Edward Tanguay
www.tanguay.info
|
|
|
|
Powered by
FUDForum. Page generated in 0.08153 seconds