Templates preferences

Use the Templates preference panel to manipulate any of the common code templates predefined within CDT or create your own. To modify, delete, export, import, or create your own templates click Window > Preferences > C/C++ > Templates.

Code Templates Preferences
Templates Preference Options
New...
Opens the New Template dialog to create a new code template.
Edit...
Opens the Edit Template dialog to edit the selected code template.
Remove
Removes the selected code templates from the list.
Restore Removed
Restores templates deleted by the last Remove action.
Revert to Default
Removes the last edits made to the selected template restoring it to it's unmodified state.
Import...
Imports a code template.
Export...
Exports the selected code templates.
Use code formatter
Enable to apply the currently selected code style to the code template.

Related concepts
Coding aids

Related tasks
Customizing the C/C++ editor
Working with Content Assist

Related reference
C/C++ editor preferences

IBM Copyright Statement