Akbarsait's Blog

ColdFusion Builder: New CFM and CFC File Settings

ColdFusion Builder provides a new option for us to set default contents in our newly created CFM and CFC files. Like code snippets this features will be helpful to place some standard code that we normally used in the CFM files like comment code block or HTML code blocks.

We can use this feature by placing the contents at ColdFusion Editor Section. Open Preferences > ColdFusion > Editor Profiles > Editor

CFBuilder Tip:New CFM And CFC File Settings

<!---
Created by   :
Date      :
Purpose      :
--->

<!DOCTYPE "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>
<head>
   <title>Untitled</title>
</head>

<body>



</body>
</html>

I have defined my default CFM file name and I placed the above code in "Initial CFM Content section" which we normally used in many CFM display pages and you can also set your frequently used contents in this section. This feature is applicable for CFC files as well. Do you think this feature is helpful? For me this is really a handy feature. ColdFusion Builder Rocks!

John Sieber's Gravatar I think it is a great feature and not sure I would have noticed it if not for your post. I'm looking forward to trying it out. A simple but useful time saver.
# Posted By John Sieber | 12/18/09 12:33 PM
Ben Nadel's Gravatar Oh very cool!
# Posted By Ben Nadel | 12/18/09 2:40 PM
Steve Bryant's Gravatar That is really nice! I hadn't seen that, but I just put in my defaults.

Thanks!
# Posted By Steve Bryant | 12/18/09 3:34 PM
Akbarsait's Gravatar @John Sieber
Totally agree and sure it will save a good time always :-)


@Ben Nadel
Yes Sir!

@Steve Bryant
Glad you like that feature.
# Posted By Akbarsait | 12/18/09 5:38 PM
Naveen Krishnamurthy's Gravatar Great Detail...
# Posted By Naveen Krishnamurthy | 12/20/09 12:06 AM
Ganesh Srinivasan's Gravatar Superb Feature.
Akbar, I think for the FuseDocs we use in the cfm, cfc pages know, we can actually store all those contents using this, so that we need not retype again and again.
# Posted By Ganesh Srinivasan | 12/20/09 11:53 PM
Ajith's Gravatar This is a great help for every cf developer..thnx for sharing this.... :-)
# Posted By Ajith | 12/20/09 11:54 PM
Akbarsait's Gravatar @Naveen,
Glad you find it useful Naveen.

@Ganesh,
Yes. This will save more time. :-)

@Ajith,
Glad to help Ajith.
# Posted By Akbarsait | 12/21/09 3:55 PM