Skip to main content
Undo and redo document changes with familiar keyboard shortcuts. Track up to 100 editing actions. Press Cmd+Z to undo, Cmd+Shift+Z to redo.

How it works

  • Automatic grouping - Changes within 500ms are grouped as one action
  • Deep history - Stores up to 100 undo steps by default
  • Smart tracking - Preserves selection and cursor position

Use case

  • Mistake recovery - Quickly undo accidental deletions or changes
  • Experimentation - Try different edits knowing you can revert
  • User confidence - Standard feature users expect in any editor

Options

Configure the extension behavior:
number
default:"100"
Maximum undo/redo steps to remember
number
default:"500"
Milliseconds to wait before starting a new history group

Commands

undo

Undo the last action
Groups changes within the newGroupDelay window
Example:

redo

Redo the last undone action
Only available after an undo action
Example:

Keyboard shortcuts

Source code