blob: ae93cd96636b6e078374a6d654a4e914b1557a57 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="../../help.css">
<title>Remote Content Assist</title>
</head>
<body>
<h1>Remote Content Assist</h1>
<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
commonly-used snippets of code.</p>
<p>Content Assist uses the index to generate content proposals. To create an index for the project, right click on the project in the Project
Explorer. Select <b>Index &gt; Rebuild.</b></p>
<img src="../../images/rebuild_index.png" alt="Rebuild action in project's context menu">
<p>To insert a template or element:</p>
<ol>
<li>In the <b>Remote C/C++ editor</b>, type at least the first letter of a template or
element then <b>Ctrl+Space</b>.<br>
A list displays the elements, followed by keywords and templates
<img border="0" src="../../images/template_obj.gif" width="16" height="16" alt="templates icon"> that start with the letter combination you typed.</li><br>
<img src="../../images/content_assist_task_01.png" alt="Editor View showing Content Assist Example">
<li>Do one of the following:
<ul>
<li>Continue typing. The list shortens. When there is only one item in the
list, it is automatically inserted.</li>
<li>Double-click an item in the list to insert it into your code. </li>
<li>Press <b>Esc</b> to close the Content Assist Window.</li>
</ul>
</li>
<li><b>Content Assist</b> is also activated by other triggers. For example, select <b>element</b> from the list of
proposals in Step 1 and type <b>.</b> immediately after. Content Assist displays a list of the members of <b>element</b>.<br>
<img src="../../images/content_assist_task_02.png" alt="Editor View showing Content Assist Example">
</li>
</ol>
<p>To set Content Assist preferences:</p>
<ol>
<li>Click <b>Window &gt; Preferences</b>.</li>
<li>Expand <b>C/C++</b>, and click <b>C/C++ Editor</b>.</li>
<li>Click the <b>Content Assist</b> tab.<br>
<img src="../../images/content_assist_task_03.png" alt="Content Assist Preferences"></li>
<li>Do the following:
<ul>
<li>To insert an element when you open Content Assist and it is the only
item in the list, select the <b>Insert single proposals automatically</b> check box.</li>
<li>To automatically insert the common prefix of all possible completions similar to Unix shell expansion,
select the <b>Insert common prefixes automatically</b> check box. This can be used repeatedly, even while the code assist window is being displayed.</li>
<li>To display proposals in alphabetical order, rather than by relevance, select the <b>Present proposals in alphabetical order</b> checkbox. </li>
<li>To change the amount of time Content Assist is permitted to parse proposals enter the value for <b>Content Assist parsing timeout</b> in the text box area.</li>
<li>Enable Auto activation of content assist for ".", "->" or "::" triggers by selecting the appropriate checkboxes.</li>
<li>To change the delay before Content Assist is automatically invoked for the triggers (shown above), enter the new delay in the <b>Auto activation delay</b> text box area.</li>
</ul>
</li>
<li>Click <b>OK</b>.</li>
</ol>
<p>For more information on using Content Assist in the editor, see <b>C/C++ Development User Guide
&gt; Tasks &gt; Working with Content Assist &gt; Using Content Assist</b>.</p>
<br>
</body>
</html>