Using Code Templates to insert snippets

To add a Code Template

  1. On the Window menu, click Preferences. The Preferences dialog box opens.
  2. In the left pane, expand C/C++ and click Code Templates.
  3. Click New. The New Template dialog box opens.
  4. Do the following

    1. In the Name field, enter a template name.
    2. In the Description field, enter a template description.
    3. In the Pattern field, enter the code for your template.
    4. Click the Context button and select a template type: C or C++.
  5. Click OK.
Copyright IBM Corporation
 2000, 2002. All Rights Reserved.