Flex Builder: Vote For Templates! (Retracting My "Snippets" Recommendation)

Earlier this week I wrote a paragraph about the merits of adding the Snippets view into Flex Builder. I would like to retract that statement and apologize to anyone who followed my advice.

You see, my experience with snippet-like features was with the Flash Development Tool (FDT) plug-in for Eclipse. FDT does not function like the Snippets that I was recommended. In fact, the plug-in I recommended is basically unusable and could be considered harmful.

With FDT, as I recall, you would create your templates in a basic text field then name and save them. When you needed that "snippet" of text, you'd type the name and hit a specific key combination and the "snippet" would appear, replacing the name that you typed. If your "snippet" had variables, dynamically places in the "snippet" to type text, your cursor would appear immediately in that space and as you typed, every place that that variable appeared would update. Ultimately, it came down to you taking the time to create the right kinds of templates for you to really reduce your coding time and effort. Pretty nice, huh? Check out the JSEclipse templates. They use this method of creating snippets.

I assumed that Snippets, at least the plug-in that I was re-recommending via another blog's post, operated in the same manner. But no, woefully not. It's a usablility nightmare. DO NOT USE IT. I'd give you more details but it would be a waste of time — it's that bad.

So, here I go again: let's bring true coding templates to Flex Builder! It's issue FB-11842 in the Flex Bug and Issue Management System (log in required, but worth the time). Please vote for this feature. It may actually save you a week-end or two a year. Think about that.

 

Comments (4) | Print | Send | del.icio.us | Digg It! | Linking Blogs
2123 Views

Comments

Mark's Gravatar The Snippet in CFEclipse works in the same manner you intended.
http://www.cfeclipse.org/assets/movies/07_Snippets...
# Posted By Mark | 5/23/08 7:53 PM
Douglas Knudsen's Gravatar voted for this one a bit back. I had in mind more of File > New > ActionScript Class. Fill in the info and bamm, based on your custom template you get a new AS file replete with 'I created this damn file don't copy it' comments and the like already in it.

17 votes now though, kewl.

DK
# Posted By Douglas Knudsen | 5/24/08 10:17 PM
ryan's Gravatar hey you could always use this: http://lifehacker.com/software/texter/lifehacker-c...

(if you are on a windows system) it is gpl though so we could always port this to mac i suppose... hey why not write an air app that does just that...
# Posted By ryan | 5/26/08 5:43 PM
ryto's Gravatar Exactly why I have kept Flex Builder and Textmate open at the same time for the past several months...
# Posted By ryto | 10/22/08 9:34 PM