Author Topic: Code Templates  (Read 9015 times)

Lisa

  • Senior Community Member
  • Posts: 238
  • Hero Points: 24
  • User-friendly geek-speak translator extraordinaire
Code Templates
« on: May 27, 2008, 12:22:54 PM »
Automate the creation of files with Code Templates. A Code Template is a file or set of files that contain common code elements, such as a standard class implementation or design patterns. Code Templates can contain substitution parameters that get replaced when the template is instantiated. Many predefined templates are available, or you can create your own.

An example of a predefined template is the C++ Composite template. When you instantiate this template, SlickEdit creates the three common files usually needed for this type of project—each containing the standard code elements necessary: CompositeName.h, CompositeNameComponent.cpp, and CompositeNameComposite.cpp.

To create a Code Template, use the menu item File > New Item From Template or Project > Add New Item From Template.