Remote Content Assist

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.

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 Index > Rebuild.

Rebuild action in project's context menu

To insert a template or element:

  1. In the Remote C/C++ editor, type at least the first letter of a template or element then Ctrl+Space.
    A list displays the elements, followed by keywords and templates templates icon that start with the letter combination you typed.

  2. Editor View showing Content Assist Example
  3. Do one of the following:
  4. Content Assist is also activated by other triggers. For example, select element from the list of proposals in Step 1 and type . immediately after. Content Assist displays a list of the members of element.
    Editor View showing Content Assist Example

To set Content Assist preferences:

  1. Click Window > Preferences.
  2. Expand C/C++, and click C/C++ Editor.
  3. Click the Content Assist tab.
    Content Assist Preferences
  4. Do the following:
  5. Click OK.

For more information on using Content Assist in the editor, see C/C++ Development User Guide > Tasks > Working with Content Assist > Using Content Assist.