Use content assist in EGL

To practice using content assist, do as follows:

  1. Open a new EGL file.

  2. On an available line, type P (for page handler or program) and press Ctrl + Space.

  3. When a pop-up is displayed, click an icon for the part to customize. Do either of these steps:

    • Press Enter to select the first icon in the list; or

    • Use the arrow keys to select another icon (for a program) and press Enter.

    The editor places a part template in your file.

  4. Customize the part.

    When the template is displayed, the editor highlights the first area where you need to type information; in this case, specify the part name. After you type, press Tab to highlight the next area where you need to type.

    You can use the Tab key repeatedly, and this use of the key is available until you reach the end of the file or until you change your in-file position in any other way.

  5. To insert a function into your program or page handler, type F (for function), then press Ctrl + Space. Although you can select a part template again, do as follows

    • Use the arrow keys or your mouse to scroll to the end of the list

    • Press Enter or click the word Function; note that the absence of an icon means that you are selecting a string rather than a part template

    The ability to select a string is more useful in other contexts, such as when you want to type a variable name quickly.

  6. With the cursor at the end of the word Function, press Ctrl + Space and click an icon from the list.

    The editor places the function template in your file.

  7. Customize the part.

  8. As you develop your code, periodically press Ctrl + Space to understand the range of services that are provided.

Related reference
Content assist
Function part in EGL source format
PageHandler part in EGL source format
Program part in EGL source format