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

Macros page

Macros are a special Code Assist feature that lets you define templates of any sort that you can insert in any Source pane. 

To insert a macro when you are coding, type the start of the macro name, and the type the Code Assist short-cut (usually Ctrl+Space).  Select the desired macro from the completion list.

Option Description
Name The Name list shows all the macros that are defined.  To change one, select it edit it in the Expansion field.  To add a new one:
  • Click Add.
  • Provide a new name.
  • Add the desired text to be added in a Source pane when you select this macro from the Code Assist completion list.
Expansion This field shows the actual text that will be inserted in the Source pane when you select the current macro name from the Code Assist completion list.

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