Create a macro to substitute strings automatically
- On the Edit menu, click Preferences.
- Click the Editor tab.
- Click Macros.
- Click Add.
- In the field, type the string to be replaced.
- Click OK.
- In the Replace it with field, type the substituted string. For example, type the following characters:
if() {}
- Click OK.
To turn on automatic substitution in the Editor, in the Editor macros dialog box, select the Enable editor macros check box.
Related topic