carbidecpp22devenv/configuration/org.eclipse.osgi/bundles/309/1/.cp/tasks/cdt_t_contentassist.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=UTF-8">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     7
<title>Using Content Assist</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
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    11
<body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    12
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    13
<h1>Using Content Assist</h1>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    14
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    15
<p>Use Content Assist to insert C/C++ elements of your project, and templates into your code. You can insert a template into your source code rather than retyping 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    16
commonly-used snippets of code.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    17
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    18
<p>To insert a template or element:</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    19
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    20
<ol>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    21
  <li>In the C/C++ editor, type at least the first letter of a template or 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    22
  element then <b>Ctrl+Space</b>.<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    23
  A list displays the templates 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    24
    <img border="0" src="../images/template_obj.gif" alt="Templates icon" width="16" height="16"> followed by the elements that start with the letter combination you typed.</li><br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    25
	<img src="../images/contentAssist_example.png" alt="Editor View showing Content Assist Example">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    26
	
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    27
  <li>Do one of the following: 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    28
  <ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    29
    <li>Continue typing. The list shortens. When there is only one item in the 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    30
    list, it is automatically inserted.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    31
    <li>Double-click an item in the list to insert it into your code. </li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    32
    <li>Press <b>Esc</b> to close the Content Assist Window.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    33
  </ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    34
  </li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    35
</ol>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    36
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    37
<p>To set Content Assist preferences:</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    38
<ol>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    39
  <li>Click <b>Window &gt; Preferences</b>.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    40
  <li>Expand <b>C/C++</b> and <b>Editor</b>.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    41
  <li>Select <b>Content Assist</b>.<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    42
  <img src="../images/contentAssist_preferences.png"  alt="Content Assist Preferences"></li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    43
  <li>Do the following: 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    44
  <ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    45
	<li>To insert an element when you open Content Assist and it is the only 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    46
    item in the list, select the <b>Insert single proposals automatically</b> check box.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    47
    <li>To automatically insert a common prefix of all proposals, select the <b>Insert common prefixes automatically</b> checkbox.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    48
    <li>To display proposals in alphabetical order, rather than by relevance, select the <b>Present proposals in alphabetical order</b> checkbox. </li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    49
	<li>To change <b>Auto-Activation</b> of content assist for ".", "->" or "::" triggers, select the appropriate checkboxes.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    50
  </ul>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    51
  </li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    52
  <li>Click <b>OK</b>.</li>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    53
</ol>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    54
<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
    55
<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    56
<a href="../concepts/cdt_c_content_assist.htm">Content Assist</a></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    57
<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
    58
<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    59
<a href="cdt_t_add_codetemp.htm">Creating and editing templates</a><br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    60
<a href="cdt_t_imp_code_temp.htm">Importing and exporting templates</a></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    61
<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
    62
<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    63
<a href="../reference/cdt_u_c_editor_con_assist.htm">Content Assist page</a><br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    64
<a href="../reference/cdt_u_code_temp.htm">Templates page</a></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    65
<p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    66
<img src="../images/ng00_04a.gif" ALT="IBM Copyright Statement" >
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    67
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    68
</body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    69
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    70
</html>