You can record a series of keystrokes as a macro while editing code. After you record a macro, you can play it back to repeat the keystrokes during the current IDE session.
To record a macro
- In the Code Editor, click the record macro button at the bottom of the code window to begin recording.
- Type the keystrokes that you want to record.
- When you have finished typing the keystroke sequence, click the stop recording button .
- To record another macro, repeat the previous steps.
Note: Recording a macro replaces the previously recorded macro.
The macro is now available to use during the current IDE session.
To run a macro
- In the Code Editor, position the cursor in the code where you want to run the macro.
- Click the macro playback button to run the macro. If the button is dimmed, no macro is available.