PDA

View Full Version : Code templates (like in Java) in Flex ?


Dr.Drane
06-23-2009, 01:30 PM
Hello,

How can I add code templates in Flex? (I use an Eclipse with Flash Builder plugged in)

Code templates: shortcuts triggered by typing some characters and pressing CTRL + Space to get some code automatically filled in.

Thanks in adance!

Jochen

wvxvw
06-23-2009, 03:38 PM
Take a look at EclipseMonkey (wiki.eclipse.org/Eclipse_Monkey_Overview), I don't think that FB4 has snippets / templates of that sort.
Though, there're such things in FD, and I believe FDT.

Dr.Drane
06-24-2009, 09:32 AM
Take a look at EclipseMonkey (wiki.eclipse.org/Eclipse_Monkey_Overview), I don't think that FB4 has snippets / templates of that sort.
Though, there're such things in FD, and I believe FDT.

Thanks for the quick reply!

I alread tried that EclipseMonkey because it was referred to in another post in the forum, but unfortunately the downloads don't seem to work anymore. (I can't seem to find the plugin jar in one link and the other on is dead)

Code snippets I've got working via something mentioned here:
http://www.insideria.com/2008/04/flex-builder-enhancements-snippets-and-todo.html

Though I can't trigger them via keyboard shortcuts, I have to drag & drop them manually.

Huwcol
06-26-2009, 03:26 PM
Take a look at EclipseMonkey (wiki.eclipse.org/Eclipse_Monkey_Overview), I don't think that FB4 has snippets / templates of that sort.
Though, there're such things in FD, and I believe FDT.And also Amethyst - see Snippets: http://www.sapphiresteel.com/ActionScript-Snippets-in-Amethyst

Dr.Drane
07-13-2009, 08:07 AM
Thanks for all the replies guys!

But I was hoping to find a universal kind of Eclipse plugin. Because I'm already attached to using Zend Studio with MyEclipse and Flash Builder plugged into it.

Using drag&drop code snippets now in some cases, but would be nice if I could use shortcuts directly in my code too.

Kind regards,

Jochen