carbidecpp22devenv/configuration/org.eclipse.osgi/bundles/309/1/.cp/concepts/cdt_c_templates.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 3.2 Final//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
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     4
<head>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     5
<meta http-equiv="Content-Language" content="en-us">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     6
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     7
<title>Templates</title>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     8
<link rel="stylesheet" type="text/css" href="../help.css">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     9
</head>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    10
<body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    11
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    12
<h1>Templates</h1>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    13
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    14
<p>Templates are sections of code that occur frequently enough that you would like
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    15
to be able to insert them with a few keystrokes.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    16
This function is known as <b>Content Assist</b>; the sections of code that are
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    17
inserted are known as <b>templates</b>.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    18
</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    19
<p>To input an existing Content Assist template into a file, such as one for an 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    20
<b>if</b> statement, type the initial character ("<tt>i</tt>" in this case), then press <b>Ctrl+Space</b>.
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    21
The templates that begin with that character appear. Double-click on a template to insert it into a file.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    22
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    23
<p>You can edit existing Code/Content Assist templates or create new ones. From the menu bar choose
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    24
<b>Window &gt; Preferences &gt; C/C++ &gt; Editor &gt; Templates</b>.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    25
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    26
<p><img border="0" src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    27
<br><a href="cdt_c_over_cdt.htm">CDT Overview</a>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    28
</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    29
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    30
<p><img border="0" src="../images/ngtasks.gif" ALT="Related tasks" width="143" height="21">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    31
<br><a href="../tasks/cdt_t_add_codetemp.htm">Creating and editing templates</a>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    32
<br><a href="../tasks/cdt_t_contentassist.htm">Using templates</a>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    33
<br><a href="../tasks/cdt_t_imp_code_temp.htm">Importing and exporting templates</a>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    34
</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    35
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    36
<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
    37
<br><a href="../reference/cdt_u_m_edit.htm">Edit menu</a>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    38
<br><a href="../reference/cdt_u_c_editor_con_assist.htm">Content Assist page</a>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    39
<br><a href="../reference/cdt_u_code_temp.htm">Templates page</a>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    40
</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    41
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    42
<p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    43
<img src="../images/rh03_04.gif" ALT="Red Hat Copyright Statement"><br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    44
<img src="../images/ng00_04a.gif" ALT=" IBM Copyright Statement" >
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    45
</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    46
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    47
</body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    48
</html>