Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » JEdit-Like Macros in Eclipse?
JEdit-Like Macros in Eclipse? [message #214531] Fri, 08 June 2007 11:37 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: JEdit-Like Macros in Eclipse? [message #214646 is a reply to message #214546] Fri, 08 June 2007 12:59 Go to previous message
Eclipse UserFriend
Originally posted by: krzysztofHMMMMdaniel.gmail.com

Edward,

I do not use PHP, but there should be something like PHP editor
preference paga that would be analogical to java one...

HTH
--
Chris
Previous Topic:Subclipse
Next Topic:CRASH: Eclipse Ver: 3.1.2 / Linux
Goto Forum:
  


Current Time: Fri Apr 26 05:40:11 GMT 2024

Powered by FUDForum. Page generated in 0.08153 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top