Two CFBuilder tips

I am liking CFBuilder (CFB) more and more as I get used to it. I have been using CFEclipse for a few years now, so I was already pretty happy with CFB. But I keep finding new things that improve my approval.

I am a bit anal about removing extra white space. As we develop, it is normal for lots of extra spaces and tabs to appear on blank lines, and at the end of lines. CFEclipse has an option to automatically remove extra white space when you save the file. I noticed that CFB was not doing this, but I couldn't find an option to turn this on. Well, today I found it (by accident). Click Window->Preferences->ColdFusion->Editor Profiles->Editor, and then check the "Trim spaces before saving file" option. :)

Another thing I found that is cool is a feature that I thought was missing from Dreamweaver. When coding ColdFusion in Dreamweaver, if you type in '</' Dreamweaver will search for the nearest unclosed tag and automatically close it for you. So if you start a cfif block, type a bunch of code, and then type '</', Dreamweaver will finish the tag for you, '</cfif>'. I thought that CFB didn't have this feature, but today I found that it does. The catch is that there is a delay. If you want to use this feature, type your '</' and then wait a bit, and CFB will close the tag for you. I searched in the options for a way to speed this up, but I couldn't find it. That's Ok, at least the feature is there.

Comments
Yeah I quite agree with you, I've been using ColdFusion Builder for a week or two now and pretty happy with it. I think my favourite thing is the extensions, like the iIlludium code generator, very cool beans indeed!

Rob
# Posted By Robert Rawlins | 8/5/09 9:51 AM
Rob,

If you don't mind me asking, what were you using before? In reading blogs and mailing lists, it seems that people that were not using CFEclipse (or Flex Builder) before are not happy with CFB. But I've found that with any editor (or IDE) switch it just takes time to get used to it. In the end the things that you "hated" about the new editor aren't as big of a problem anymore.
# Posted By Jake Munson | 8/5/09 10:09 AM
Hey Jake,

I was using CFEclipse, I can completely understand a great number of people complaints but we need to all bare in mind that it's in BETA at the moment. I think the syntax highlighting could be better, it's ALL read and blue at the moment, would like to see something a little more varied, especially when it comes to SQL inside query blocks and things.

I've also had a couple of speed glitches where it goes REAL slow and takes a few moments to catch up with what I'm writing, however on the whole I find it pretty good.

The fact that the syntax dictionary is accurate is a real plus, I used to find that CfEclipse would tell me my code was invalid when in fact it was perfect.

It's a work in progress for sure, but I have no doubts that as they ween out the bugs and people start creating some exciting extensions things will really kick in. I also love the fact that it's stand-alone and a plugin, giving all the cool features to non Eclipse users.

Rob
# Posted By Robert Rawlins | 8/5/09 10:14 AM
Overall I'm enjoying cfbuilder. One thing is bothering me though... I'm wondering if I am just misunderstanding how the intellisense feature is supposed to work or what?

I was thinking that if I'm in my UserService, for example, and I instantiate my RoleService like so:

rs = createObject("roleservice").init();

and then type "rs" DOT, I would have all the methods from the RoleService object displayed for me to choose from. I'm definitely not seeing that. I am seeing it inspect the arguments scope and some other things, but so far I haven't seen the true intellisense I was hoping for.

What have your experiences been?

Thanks,
Brian
# Posted By Brian FitzGerald | 8/5/09 10:30 AM
I still like CFEclipse better so far...

I like how it can minimize all cffunctions upon opening a CFC, so nice.

And CFEclipse is still snappier overall.
# Posted By Henry Ho | 8/5/09 10:35 AM
Brian, do you have your project tied to a server? If not, go to the project settings and select a server (or set one up) and make sure that server is running. I had the same question, and that solved it for me. Also look at variable mappings if you cache cfcs in scope
# Posted By Jonathan | 8/5/09 11:41 AM
Jake,

If you type </ and invoke code assist manually (by pressing CTRL+SPACE), the completion tag is inserted for you, so you don't have to type the closing tag OR wait for the delay.

BUHLER
# Posted By David Buhler | 8/6/09 1:26 PM
I have been using CFBuilder for about 2 weeks. I definitely see potential in it, but I have to remind myself that it's a beta. The code hints can be very slow and often doesn't work, particularly with <cfif>. Some things I've grown used to in CFEclipse are not there in CFBuilder or work differently than they did in CFEclipse, but that is to be expected. Overall I'm pleased with it and look forward to the production release.
# Posted By Kenneth Barrett | 8/13/09 12:19 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.9. Contact Blog Owner