carbidecpp22devenv/configuration/org.eclipse.osgi/bundles/309/1/.cp/reference/cdt_u_c_code_templates_pref.htm
author cawthron
Fri, 04 Dec 2009 10:01:33 -0600
changeset 5 684bf18fdedf
permissions -rw-r--r--
add files for RCL_2_2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     2
<html lang="en">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     3
  <head>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     4
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2007. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     5
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     6
    <title>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     7
      Code templates
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     8
    </title>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     9
    <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    10
    <script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js"> </script>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    11
  </head>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    12
  <body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    13
    <h1>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    14
      Code templates
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    15
    </h1>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    16
<p>The
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    17
<a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.cdt.ui.preferences.CodeTemplatePreferencePage)")'>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    18
<img src="PLUGINS_ROOT/org.eclipse.help/command_link.png" alt="Opens the Code Templates preference page">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    19
<b>C/C++ &gt; Code Style &gt; Code Templates</b></a> preference page
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    20
lets you configure the format of newly generated code stubs, comments and files.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    21
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    22
<p>The code templates page contains templates that are used by actions that generate code and/or source files. 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    23
E.g. the New Class wizard uses source and header file templates to create new files and code templates to insert generated method stubs. 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    24
Templates contain variables that are substituted when the template is applied. Some variables are available in all templates, some are specific to templates.</p><table
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    25
	border="1" cellspacing="0" cellpadding="5" width="600">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    26
	<thead>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    27
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    28
			<th>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    29
			<p>Action</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    30
			</th>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    31
			<th>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    32
			<p>Description</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    33
			</th>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    34
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    35
	</thead>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    36
	<tbody>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    37
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    38
			<td valign="top" width="25%">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    39
			<p>New...</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    40
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    41
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    42
			<p>Opens the Code Template dialog to create a new file template.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    43
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    44
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    45
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    46
			<td valign="top" width="25%">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    47
			<p>Edit...</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    48
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    49
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    50
			<p>Opens the Code Template dialog to edit the currently selected code template.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    51
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    52
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    53
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    54
			<td valign="top" width="25%">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    55
			<p>Remove</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    56
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    57
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    58
			<p>Removes a user added file template. Predefined templates cannot be removed.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    59
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    60
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    61
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    62
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    63
			<p>Import...</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    64
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    65
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    66
			<p>Imports templates from the file system.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    67
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    68
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    69
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    70
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    71
			<p>Export...</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    72
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    73
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    74
			<p>Exports all selected templates to the file system.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    75
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    76
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    77
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    78
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    79
			<p>Export All...</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    80
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    81
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    82
			<p>Exports all templates to the file system.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    83
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    84
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    85
	</tbody>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    86
</table>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    87
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    88
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    89
<h2>Comment Templates</h2>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    90
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    91
<table border="1" cellspacing="0" cellpadding="5" width="600">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    92
	<thead>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    93
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    94
			<th>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    95
			<p>Template Name</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    96
			</th>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    97
			<th>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    98
			<p>Specifies</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    99
			</th>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   100
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   101
	</thead>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   102
	<tbody>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   103
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   104
			<td valign="top" width="25%">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   105
			<p>Files</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   106
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   107
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   108
			<p>Header comment for new source or header files.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   109
			<p>Note that this template can be referenced in source and header file templates with <b>${filecomment}</b>.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   110
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   111
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   112
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   113
			<td valign="top" width="25%">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   114
			<p>Types</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   115
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   116
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   117
			<p>The comment for new types.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   118
			<p>Note that this template can be referenced in source and header file templates with <b>${typecomment}</b>.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   119
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   120
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   121
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   122
			<td valign="top" width="25%">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   123
			<p>Fields</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   124
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   125
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   126
			<p>The comment for new fields.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   127
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   128
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   129
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   130
			<td valign="top" width="25%">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   131
			<p>Constructors</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   132
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   133
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   134
			<p>The comment for new constructors.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   135
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   136
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   137
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   138
			<td valign="top" width="25%">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   139
			<p>Destructors</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   140
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   141
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   142
			<p>The comment for new destructors.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   143
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   144
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   145
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   146
			<td valign="top" width="25%">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   147
			<p>Methods</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   148
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   149
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   150
			<p>The comment for new methods.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   151
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   152
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   153
	</tbody>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   154
</table>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   155
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   156
<h2>Code Templates</h2>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   157
<p></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   158
<table
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   159
	border="1" cellspacing="0" cellpadding="5" width="600">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   160
	<thead>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   161
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   162
			<th>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   163
			<p>Template Name</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   164
			</th>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   165
			<th>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   166
			<p>Description</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   167
			</th>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   168
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   169
	</thead>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   170
	<tbody>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   171
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   172
			<td valign="top" width="25%">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   173
			<p>Method body</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   174
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   175
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   176
			<p>The 'Method body' templates are used when new method is created.</p> 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   177
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   178
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   179
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   180
			<td valign="top" width="25%">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   181
			<p>Constructor body</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   182
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   183
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   184
			<p>The 'Constructor body' templates are used when a constructor is created.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   185
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   186
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   187
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   188
			<td valign="top" width="25%">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   189
			<p>Destructor body</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   190
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   191
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   192
			<p>The 'Destructor body' templates are used when the destructor is created.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   193
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   194
	</tbody>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   195
</table>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   196
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   197
<h2>File Templates</h2>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   198
File templates can not only be defined and modified for C/C++ files, but also for other content types, like Assembly files or plain text files.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   199
The New File from Template wizard can be used to create new files based on one of the templates defined in this page.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   200
<p></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   201
<table
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   202
	border="1" cellspacing="0" cellpadding="5" width="600">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   203
	<thead>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   204
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   205
			<th>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   206
			<p>Template Name</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   207
			</th>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   208
			<th>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   209
			<p>Description</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   210
			</th>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   211
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   212
	</thead>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   213
	<tbody>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   214
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   215
			<td valign="top" width="25%">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   216
			<p>Default C++ source template</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   217
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   218
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   219
			<p>Used by the New Class wizard and the New Source File wizard when a new C++ source file is created.</p> 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   220
			<p>The template can specify where comments are added. Note that the template can contain the variable <b>${typecomment}</b> and <b>${filecomment}</b> that will be substituted by the evaluation of the <b>Types</b> respectively <b>Files</b> comment template.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   221
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   222
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   223
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   224
			<td valign="top" width="25%">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   225
			<p>Default C++ header template</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   226
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   227
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   228
			<p>Used by the New Class wizard and the New Header File wizard when a new C++ header file is created.</p> 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   229
			<p>The template can specify where comments are added. Note that the template can contain the variable <b>${typecomment}</b> and <b>${filecomment}</b> that will be substituted by the evaluation of the <b>Types</b> respectively <b>Files</b> comment template.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   230
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   231
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   232
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   233
			<td valign="top" width="25%">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   234
			<p>Default C source template</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   235
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   236
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   237
			<p>Used by the New Source File wizard when a new C source file is created.</p> 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   238
			<p>The template can specify where comments are added. Note that the template can contain the variable <b>${typecomment}</b> and <b>${filecomment}</b> that will be substituted by the evaluation of the <b>Types</b> respectively <b>Files</b> comment template.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   239
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   240
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   241
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   242
			<td valign="top" width="25%">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   243
			<p>Default C header template</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   244
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   245
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   246
			<p>Used by the New Header File wizard when a new C source file is created.</p> 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   247
			<p>The template can specify where comments are added. Note that the template can contain the variable <b>${typecomment}</b> and <b>${filecomment}</b> that will be substituted by the evaluation of the <b>Types</b> respectively <b>Files</b> comment template.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   248
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   249
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   250
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   251
			<td valign="top" width="25%">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   252
			<p><i>Other file templates</i></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   253
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   254
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   255
			<p>File templates can be defined for other content types, e.g. Assembly or plain text.</p> 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   256
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   257
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   258
	</tbody>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   259
</table>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   260
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   261
<h2>Edit Template dialog</h2>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   262
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   263
<p>The following fields and buttons appear in the dialog:</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   264
<table border="1" cellspacing="0" cellpadding="5" width="100%">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   265
	<thead>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   266
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   267
			<th>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   268
			<p>Action</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   269
			</th>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   270
			<th>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   271
			<p>Description</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   272
			</th>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   273
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   274
	</thead>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   275
	<tbody>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   276
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   277
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   278
			<p>Name</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   279
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   280
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   281
			<p>The name of the template. Only available for file templates.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   282
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   283
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   284
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   285
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   286
			<p>Type</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   287
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   288
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   289
			<p>The file type (content type) of the template. Only available for file templates.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   290
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   291
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   292
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   293
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   294
			<p>Description</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   295
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   296
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   297
			<p>A description of the template</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   298
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   299
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   300
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   301
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   302
			<p>Pattern</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   303
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   304
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   305
			<p>The template pattern.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   306
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   307
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   308
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   309
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   310
			<p>Insert Variables...</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   311
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   312
			<td valign="top">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   313
			<p>Displays a list of pre-defined template specific variables.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   314
			</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   315
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   316
	</tbody>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   317
</table>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   318
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   319
<p><img border="0" src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21"> <br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   320
<a href="../concepts/cdt_o_code_entry.htm">Coding aids</a></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   321
<p><img border="0" src="../images/ngref.gif" ALT="Related reference" width="143" height="21">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   322
<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   323
<a href="cdt_o_ceditor_pref.htm">C/C++ editor preferences</a></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   324
<img src="../images/ng00_07.gif" ALT="IBM Copyright Statement" >
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   325
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   326
</body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
   327
</html>