Writing code by using content assist

You can use the EGL content assist to complete programming statements without typing the entire statement. You can quickly insert an EGL keyword, function, variable, property, or code template.

When you initiate the content assist, it displays all of the available keywords that are available at that position, which might be a long list. However, you can control the amount of information that is displayed when you initiate the content assist. To filter the displayed information, enter the beginning characters of the function that you want to insert and then initiate the content assist. For example, if you are looking for program, type pr and press Ctrl+Space. The displayed list will contain those commands, templates, and code statements that begin with pr. You can narrow the list by increasing the number of characters that you type for the search argument (for example, type progr).

To use the content assist:
  1. Within an EGL source file, press Ctrl+Space. The content assist displays a list of EGL keywords and code templates that are available at your current position.

    To reduce the number of items in the list, before or after you activate the content assist, type at least one character of the keyword or template that you are searching for.

  2. Select the code from the list by doing one of the following:
    • Use the arrow keys to select an option and press Enter.
    • Select an option in the list.
  3. The code is inserted into the current location of the cursor. You can then modify the inserted code.
  4. If you inserted a code template with variables rather than a single keyword, those variables are highlighted in the inserted code temporarily. To move a highlighted variable, press the Tab key.
The content assist is context-sensitive. For example, if you are in a set-value block for a program, the content assist offers only properties that are valid for programs. You can use the content assist to add additional properties:
  1. After the last property-value pair, type a comma (,).
  2. Position the cursor after the comma and press Ctrl+Space to initiate the content assist. The resulting list shows properties that are both valid for the program and not yet included in the program.
  3. Select the code as described above.

Feedback