Creating and editing templates

Content Assist uses templates to enable you to quickly make use of commonly used code segments.

To create a template:

  1. Click Window > Preferences.
  2. Expand C/C++, expand Editor and select Templates.
  3. Click New.


    Creating a new Code Template Window


  4. Do the following: (if required)

  5. Click OK.
    The new template displays in the Templates list.

To edit a template:

  1. Click Window > Preferences.
  2. Expand C/C++, expand Editor and select Templates.
  3. Click Edit. The Edit Template dialog opens.


    Editing a Code Template


  4. Do the following:

  5. Click OK.

Related concepts
Content Assist

Related tasks
Using Content Assist
Importing and exporting templates

Related reference
Templates page

QNX Copyright Statement