Using content assist in the Remote C/C++ Editor

You can use content assist to help you complete a method, type, or field name in the Remote C/C++ Editor.

About this task

To perform content assist, complete the following steps:

Procedure

  1. The placement of the cursor in your code provides the context for the content assist to offer suggestions for completion. Place the cursor in a valid position on a line of code in the Remote C/C++ Editor, start typing a method, type, or field name, and then do one of the following actions to launch content assist:
    • Press Ctrl+Spacebar to provide templates and proposals from locally cached header files.
    • Select Edit > Content Assist from the menu bar to provide templates and proposals from locally cached header files.
    Tip: To read any remote header files that are included in the source file to provide remote proposals, press Ctrl+Spacebar a second time.
    In addition to looking for proposals in the current file, the editor also checks any header files that are included through the #include preprocessor directive. The directory in which the source file is being edited is located and automatically searched for any non-system-header files. For example, files included with #include "file" instead of #include <file>. If your cursor is in a position where content assist is available, a pop-up list of available choices is displayed when you launch content assist. As you type the first one or two letters of the content, the list automatically refreshes with alphabetized choices that match your input. Hovering over a completion displays more information for that completion, if it is available.
  2. Use the arrow keys or scroll bars to navigate the completion list.
  3. To choose a completion from the list, do one of the following actions:
    • Select the completion and press Enter.
    • Double-click the completion.