Contact Us Today!   |   + 1 (301) 424 3903

CFEclipse cheatsheet

Jim Priest has a good new cfeclipse cheatsheet up:

I had seen this posted on someone else's blog (can't find the link), but after Theo's CFEclipse post, thought it would be useful here.

(UPDATE: These are now on the CFEclipse wiki: )

CFEclipse 1.3 Update - Part II

Hello World,

In my last post I talked about two of the several new features of the CFEclipse 1.3 update. One of which was the Code Snippets feature. Although the Code Snippets has been a feature of CFEclipse for some time now most people (including myself) are either unaware of its existance or its features. I would like to revisit the Code Snippets in this post. I admit that I did not give Code Snippets the credit that it deserved. After playing around with the Code Snippets panel for more than 15 minutes I found that it has a bit more to it than one might think at first glance. So let's look a little beyond the first glance and explore a couple of the coolest features of the Code Snippets panel.

1) User Variables: One of the coolest features I found while using the Code Snippets was the use of variables in your snippets. You can define variables within your code snippet. Your variables can be defined as shown below:

view plain print about

Here is an example of how you would use the variable definition:

view plain print about
1<cfquery name="$${queryname}" datasource="cfdocexamples">

Now when you double click on your Code Snippet in order to place it into your code, a dialog box will be displayed prompting you for a value for the queryname variable. You can define more than one variable within your code snippet. See below:

view plain print about
1<cfquery name="$${queryname}"
3cachedwithin="#CreateTimeSpan($${days}, $${hours}, $${minutes}, $${seconds})#">


Using this code snippet, the dialog box will prompt you for the queryname, days, hours, minutes, and seconds.

2) System Snippet Variables: In addition to being able to use your own variables you can also use the following System Snippet Variables:

view plain print about
1$${DATE}        - Enters the date as MM/DD/YYYY E.g. 11/30/2007
2$${MONTH}        - Enters the month as text E.g. February
3$${TIME}        - Enters the time E.g.: 7:29:58 AM
4$${DATETIME}        - Enters the date and time E.g.: 2/9/2007 7:29:58 AM
5$${DAYOFWEEK}        - E.g.: Friday
6$${CURRENTFILE}        - Current file name (just the file)
7$${CURRENTFOLDER}    - Current folder (The path to the containing folder)
8$${CURRENTPATH}        - Current path (full file name)
9$${CURRENTPRJPATH}    - Just the folder
10$${USERNAME}        - Current user
11$${MONTHNUMBER}        - Month as a number
12$${DAYOFMONTH}        - Day of month as a number
13$${DAYOFWEEKNUMBER}    - Day of week (the week starts on Sunday)
14$${DATETIME24}        - DateTime24 - a 24 hour clock version of datetime.
15$${YEAR}        - Current year.
16$${YEAR2DIGIT}        - Current two digit year.

Here is an example of you might use one of the System Variables:

view plain print about
2    <fusedoc
3        fuse="$${CURRENTFILE}"
4        language="ColdFusion">
6        <responsibilities>
7            $${response}
8        </responsibilities>
10        <properties>
11            <property
12                name="Date"
13                value="$${DATE}">
14        </properties>
15    </fusedoc>

As you can see this is a sample fusedoc that uses a couple of the System variables to automatically substitute the current file and the current date. A user variable is defined which will prompt for the responsibilities text.

CFEclipse TV

The site has added a new section called CFEclipse TV. This section hosts several screencasts describing some of the features of CFEclipse including Using Snippets for Speedy Coding and Getting Started.


CFEclipse 1.3 Update - Part I

Hello World,

Many people have wondered, "just what are the enhancements to CFEclipse?". Well I asked myself that same question and began to do a little research to find the answers. So I will present to you a few of the enhancements you will find in the CFEclipse 1.3 update. I will alos include my personal experience with those features as I make use of them.

Methods View: A new panel has been added that allows you to see and include your ColdFusion CFC methods. I've used it and it works resonalbly well. I have been using such a functionality in Dreamweaver for a while. I'm glad to see it now in CFEclipse. You can find the Methods View by Selecting Window > Other Views. Then within the Show View window Expand the CFML tree node and Select "Methods View". now Click on the OK button.

Code Snippets: Once again, this is a functionality that I've used in Dreamweaver for quite some time. You can find the Snip Tree View by Selecting Window > Other Views. Then within the Show View window Expand the CFML tree node and Select "Snip Tree View". now Click on the OK button.

Many developers tend to "put down" Dreamweaver for many reasons. However, as a developer and dessigner I still find Dreamweaver quite useful. As CFEclipse adds more and more functionality I will then look to make a complete move from Dreamweaver to Flex Builder 2 or Eclipse, using the CFEclipse plugin for ColdFusion development. Until then I use each tool in the appropriate setting to achive my goal.

I will have more for you in the near future as I explore what the new release of CFEclipse has to offer.


BlogCFC was created by Raymond Camden. This blog is running version Contact Blog Owner