The Dopefly Tech Blog

« The Dopefly Tech Blog Main page

My CFEclipse Snippets

posted under category: CFEclipse on February 23, 2006 at 1:00 am by Nathan

The coolest thing that I demo'd for CFEclipse last night was probably the snippets. These things can be killer if you know how to use them. They are a serious WOW feature. So, without further ado:

Nathan's CFEclipse Snippets

Download them, unzip them, and put them in your snippets folder. The default location is in your workspace plugins CFEclipse folder. As an example, here's where mine is:

C:\Documents and Settings\Nathan\workspace\.metadata\.plugins\com.rohanclan.cfml\snippets\

Watch out for that keyCombos.properties file, it keeps the key shortcuts. If you already have one, just merge mine into yours when you copy the folders, it's just a simple text file.

Most of my snippets have a shortcut key. Follow them by [ctrl]+[shift]+[period] (on windows, sorry, don't know the mac combo) to insert the snippet. Here's some of my favorites:

fun = cffunction tags
arg = cfargument
q = cfquery
r = cfreturn
d = cfdump
a = cfabort
p = cfparam
getset = getter and setter functions
todo = a todo comment

Provide feedback in the comments!