Default templates

28 views
Skip to first unread message

jmail

unread,
Nov 27, 2011, 2:28:41 PM11/27/11
to CFEclipse Users
Hi!

I would like to ask one thing.

I have started coding whole applications in cfscript. I would like to
change default template for CFC from wizard from

<cfcomponent extends="SomeName" output="false">

</cfcomponent>


to that one

component extends="SomeName" output="false"{
public function init(){

}
}

Is it possible? And if how can I do that.

Thanks for tips.

Tomasz Borek

unread,
Nov 28, 2011, 2:51:29 PM11/28/11
to cfeclip...@googlegroups.com
Out of my head it would be Eclipse feature (but may be completely wrong since I haven't got CFE installed where I am now and can't verify).

Window > Preferences > in filter box put "Templates".

I would start looking either in Content Assist > Templates or in CFEclipse > Code templates - or something similar.

pozdrawiam,
Tomasz Borek

denstar

unread,
Nov 30, 2011, 1:55:58 AM11/30/11
to cfeclip...@googlegroups.com

As mentioned, you can use a snippet and mark it as a "file template", so
it will show up in the "new from template" menu item (which should be
renamed to "new from file snippet" I reckon;])...

Or you can use templates...
http://blog.mxunit.org/2009/10/new-in-cfeclipse-templates.html

Or you can try the latest dev release, which has an option for choosing
script-style in the wizard, to help test the next release:

http://cfeclipse.org/update-dev/ (<- update site)

:Den

--
What is sacred among one people may be ridiculous in another; and what
is despised or rejected by one cultural group, may in a different
environment become the cornerstone for a great edifice of strange
grandeur and beauty.
Hu Shih

Reply all
Reply to author
Forward
0 new messages