Keyboard macros
Record a sequence of edits and replay it: in the Emacs keymap, F3 to start, F4 to stop, C-x e to replay. Name and save macros, and bind them to keys.
When the same edit has to happen forty times, do it once and let Editora repeat it. A macro records the commands you run and the text you type, and replays them exactly, auto-indent and auto-close included.
Record and replay
- Record:
F3starts recording andF4stops in the Emacs keymap;Esccancels and keeps the previous macro. - Replay:
C-x ereplays the last macro, and Macro: Replay Last N Times repeats it as often as you ask. - Everything you do counts: text typed into the find bar, a prompt or a picker is recorded too, so a search replays as a search.
- One undo step: a whole replay undoes at once.
Keep the good ones
- Macro: Name and Save Last keeps a macro across sessions.
- Each saved macro is a command of its own, so it appears in the palette and takes a shortcut in Settings → Keymaps.
- Macro: Run Saved and Macro: Delete Saved pick from your saved macros.
In the CUA and Sublime Text keymaps F3 is Find, so CUA starts and stops recording with Ctrl+Shift+R (Cmd+Shift+R on macOS) and Sublime Text replays with Ctrl+Shift+Q. In every keymap the macro commands are in the palette.
See the Macros guide.