Keystroke Macros (IDE Tutorial)
Go Up to The Code Editor Index (IDE Tutorial)
You can record a series of keystrokes as a macro while editing code. The red button at the bottom of the code window starts the recording; the green button stops recording. After you record a macro, you can play it back to repeat the keystrokes during the current IDE session. Recording a macro replaces the previously recorded macro.
Look at Recording a Keystroke Macro for more information.