Ken, I have the same issue.  I have quite a few of these code templates
in HS.

I have something like:
"cffun" then Ctrl+J to create a function
"cfarg" to create an argument
"return" to add a closing return tag
"var" to add "variables."
"req" to add "request."

Plus a few more for larger blocks of code.

Since I really started using DW, I haven't yet had a project large
enough, that required me to re-created this functionality in DW, but I
should have something to work on very shortly.

Thanks for the post, Ken.

-----Original Message-----
From: Ken Ferguson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 20, 2005 8:22 AM
To: CF-Talk
Subject: Re: Dreamweaver, Homesite+ 5.5, Eclipse?

I tried and tried and tried not to get sucked into this thread, but it's
useless! I use Homesite+. I love CFEclipse, but I just *CAN'T* get away
from Homesite+. I've got it, from years of using it, set up so that it's
so efficient for me to do my work. The code templates are the greatest
things and I can't figure out how to accomplish the same thing (that
works as easily and as well) in CFE or DW.

For instance, I type sel and hit ctrl+j and the following code magically
pops onto my screen:
<cfquery name="q" datasource="#request.dsn#">
    Select
    From
    Where
</cfquery>

I type function and hit ctrl+j and I get:
<cffunction name="" access="public" output="false" hint="">
    <cfargument name="" required="" default="" />
    <cfset var = />
   
    <cfreturn />
</cffunction>

I type component and hit ctrl+j and I get:
<cfcomponent displayname="" hint="">
    <cffunction name="init" access="public" returntype="">
        <!--- do nothing Pseudo constructor --->
        <cfreturn this>
    </cffunction>   

    <cffunction name="" access="public" output="false" hint="">
        <cfargument name="" required="" default="" />
        <cfscript>
             var = "";
            
        </cfscript>
       
        <cfreturn />
    </cffunction>

</cfcomponent>

switch and ctrl+j gets me:
<cfswitch expression="">
    <cfcase value="">
       
    </cfcase>
    <cfcase value="">
       
    </cfcase>
    <cfdefaultcase>
       
    </cfdefaultcase>
</cfswitch>

OK, so you get the picture; I have tons and tons of these (about 50 or
so) that are burned into my memory. Switches, queries, select boxes,
loops, common js functions, cfc's, CF functions, if blocks, form
skeletons, preformatted div blocks...  I just have to type a couple of
letters, hit ctrl+j and Bob's your uncle. So when I go and try to work
in CFE or DW it seems like it takes me an inordinately long time to get
things done. It's so simple in HS+. I haven't ever figured out how to
get this sort of thing to work so easily in any other IDE. The other
thing I like about HS+ is that I don't have to have a bunch of things
defined to use it. I open the program and I open a file and edit it. 
That's it, no sites or workspaces or any crap like that -- just a file
and an editor. HS+, unlike DW, will stay out of my way and let me get my
work done instead of constantly behaving like it knows what I should be
doing better than I do.

Of course, in words that are obviously stolen, that's just my opinion; I
could be wrong.
--Ferg

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221635
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to