Search VisualAge for Java Information Go to Information Home Page Go to VisualAge for Java WWW Site

Keyword Completions page

Keyword Completions are a special Code Assist feature that lets you define templates for certain keyword and programming structures.  The completions provided by default are good examples of what type of completions you might want to use, and you can define your own. 

To insert a Keyword Completion when you are coding, type the keyword you want (for example, "for"), and the type the Code Assist short-cut (usually Ctrl+Space).   Select the desired completion from the completion list.

Option Description
Name The Name list shows all the keyword completions that are defined.  To change one, select it edit it in the Completion field.  To add a new one:
  • Click Add.
  • Provide a new name (which must start with a keyword).
  • Add the desired text to be added in a Source pane when you select this completion from the Code Assist completion list.
Completion This field shows the actual text that will be inserted in the Source pane when you select the current Keyword Completion name from the Code Assist completion list.

Insert a vertical bar character ("|") where you want the cursor to be placed after the text has been inserted.

If you want to restore default settings, click Defaults.   If you want to apply changes without exiting the window, click Apply.

ngrelt.gif (466 bytes)
Defining Code Assist macros
Writing and formatting source code