Skip to content
| Marketplace
Sign in
Visual Studio Code>Education>Action RecorderNew to Visual Studio Code? Get it now.
Action Recorder

Action Recorder

Daryoush Alipour tirotir

|
344 installs
| (0) | Free
Record, replay and export your editor actions. Smart typing merge, safe focus-friendly replay, macros, persistent sessions, file helpers.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Action Recorder

Record what you do in the editor, replay it, turn it into a macro or a Markdown tutorial — without ever taking the cursor away from you.

Highlights

  • Focus-safe replay – edits are applied in the background; the replay stops the moment you type or click.
  • Smart recording – typing is merged into single actions; noise (output panels, git, settings) is ignored; cursor recording is optional.
  • Persistent sessions – survive reloads; stored per user; portable workspace-relative paths.
  • Timeline – browse, filter, rename, pin, delete, replay from any action, click to jump to the code.
  • Macros – save a session as a macro, use ${counter}, ${date}, ${fileBasename}, ${input:Label}; run on the active file.
  • Export – JSON, Markdown tutorial, shell script, tasks.json.
  • Safe by default – replay only runs allow-listed commands, terminal replay is opt-in, imported sessions ask first, ignore globs and redaction keep secrets out.
  • File helpers – Duplicate Current File (Ctrl+Alt+D) and New Numbered File with templates.
  • English & فارسی – see actionRecorder.language.

Quick start

  1. Click Record in the status bar (or Action Recorder: Start Recording) and work normally.
  2. Click the button again to stop. Open the Action Recorder activity-bar view to see the timeline.
  3. Replay with the ▶ button on a session. Use Replay Session with Options… for speed, timing and repeat.

Recording commands

VS Code has no global "command executed" event. Bind the commands you want recorded through the wrapper:

// keybindings.json
{ "key": "ctrl+alt+f", "command": "actionRecorder.runAndRecord",
  "args": { "command": "editor.action.formatDocument" } }

Macros

Save Session as Macro… marks a session as a macro. Run it from the palette or from a key:

{ "key": "ctrl+alt+m", "command": "actionRecorder.runMacro", "args": { "name": "My macro" } }

Run on the active file shifts line numbers relative to your cursor; character columns are kept as recorded.

Replay safety

Setting Default Meaning
replay.stopOnUserInput on Stop when you type/click
replay.allowedCommands [] Extra command IDs replay may run (built-in editing commands are always allowed)
replay.allowTerminalAndTasks off Send recorded terminal commands to a terminal (trusted workspaces only)
replay.fileOperations createOnly none / createOnly / all (deletes go to the trash)

Notes & limits

  • Replay assumes the files are in the same state as when recording started. Use Undo Last Replay to restore.
  • Terminal recording needs VS Code 1.93+ with shell integration.
  • Edit a session's JSON via Open Session JSON; saving the file reloads it.

Development

npm install
npm run build        # bundle to dist/
npm test             # unit tests (pure logic)
npm run smoke        # loads the bundle against a fake vscode API
npm run package      # builds the .vsix
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft