Some Oohs and Aahs in ColdFusion Builder 2

While doing a little tinkering in my ColdFusion Builder 2 Beta I accidentally ran across some features while editing a ColdFusion file. These appear to be all new from version 1 and will be a great time-saver for me!

Code hyperlinks for CFCs and UDFs
Component names and UDFs are hyperlinked if you press Ctrl and hover over the object name. Clicking the hyperlink opens the corresponding code. According to Adobe Help, code hyperlinks are available for:

  • UDFs: local, included, and cfc.udfName
  • Template in <cfinclude template=””>
  • CFCs in createobject(), <cfobject>, <cfinvoke>, new keyword, and extends attribute.

Ctrl+Shift+R (Open Resource…)
Another resource worth mentioning, but is not new is the Open Resource window. Apparently it’s been around a long time in Eclipse, but I just learned about it.

When you open the window, you can start typing a name of a file which will bring up a list a matching files located in your project. For example “tests” may bring up “TestSuite.cfc”, “TestSimple.cfm”, and “TestSomething.html”. In addition you can select the resulting file to find its path and open it either in its specific or default editor.

However the best part of this is if you highlight a file reference in your code, then press Ctrl+Shift+R it will bring that highlight into the search filter readily giving you access to the file you are searching for. This can be especially handy if you can’t use the code hyper-link due to component searching, which ColdFusion Builder can’t resolve yet.

Explore Files and Copy Path(s) to Clipboard
While a file is open to edit, right click for the context menu. Here you will see two commands listed:

  • Explore Files
  • Copy path(s) to clipboard

“Explore Files” will open your Windows Explorer to the path of that currently open file and focus to the file name.

“Copy path(s) to clipboard” will copy the path of the open file to your clipboard. Example: “C:\websites\myfile.cfm”