Show: Delphi C++
Display Preferences

Recording a Keystroke Macro

From RAD Studio
Jump to: navigation, search

Go Up to How To Edit Code in the Code Editor


You can record a series of keystrokes as a macro while editing code. After you record a macro, you can play the macro to repeat the keystrokes during the current IDE session. You can have only one macro at a time, so when you record another macro, it replaces the existing macro.

To record a macro

  1. In the Code Editor, click the record macro button Macro record at the bottom of the code window (or press Ctrl+Shift+R) to begin recording.
  2. Type the keystrokes that you want to record.
  3. When you have finished typing the keystroke sequence, click the stop recording button Macro stop (or press Ctrl+Shift+R again).
  4. 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

  1. In the Code Editor, position the cursor in the code where you want to run the macro.
  2. Do either of the following:
    • Click the macro playback button Macro playback at the lower left corner of the window. If the button is dimmed, no macro is available.
    • Alternatively, press Ctrl+Shift+P.


See Also

Personal tools
RAD Studio 10.2 Tokyo
In other languages
Previous Versions
Assistance