UPDATE: I gave up on using the CFEclipse plugin a while ago mainly due to it’s inoperability in MXML files and have switched to using Sourcemate; The templates feature is pretty much everything i could ask for and it’s loaded with a ton of other great features. With Sourcemate and the Flexformatter, I’m pretty pleased with my IDE setup but I’ve been meaning to check out FDT now that it has progressed significantly.
I really love the CFEclipse snippets feature that I mentioned in my previous post. It is exactly what I’ve been after for quite a while. The snippets are stored as simple XML files in a folder in your workspace, which makes them really easy to edit and move from one workspace to another.
Insert ActionScript Header Insert top-level ActionScript header.
Oh, and get this! You can specify that a snippet as a class template, and then you can use it to create new files that are pre-filled with the syntax you want. Hot damn! I remember digging through a ton of folders in the FlexBuilder plugin trying to figure out how to customize the default ActionScript class template. The interface for creating a new class from a template is a little strange since you have to browse to the package in which you want to create the class and explicitly specify the class name and the file name. But still…
As far as sharing snippets via SnipEx, it’s not quite what I had hoped for. SnipEx is a ColdFusion application that allows you to share your snippets with others. There is a public repository at http://www.cfsnippets.org/ that you can use if you don’t have access to a ColdFusion server where you can install the application. The CFEclipse plug-in offers an “Export to SnipEx server” option, but it’s not yet compatible with cfsnippets.org.
Mrinal Wadhwa and I talked briefly about teaming up and cranking out a bunch of useful Flex Actionscript and MXML snippets and posting them to cfsnippets.org, but the disappointing thing is that I can’t figure out how to pair a remote snippet with an abbreviation the way you can with your local snippets. Because of that, I’m not sure if it’s worth the effort to post to cfsnippets.org, but I’d be happy to zip up my snippets folder and share it with anyone who’s interested.
Perhaps my favorite feature about this plugin is that it intelligently indents multi-line snippets. All other solutions I’ve worked with screwed up the first line if you were trying to indent it at a level other than the one it was created at. Props to CFEclipse for figuring this one out.
The variable support is what other text expander are really lacking, and I’m really impressed with the implementation of it in CFEclipse.
Read more about some of the things you can do with your snippets here.