Use when
- Users perform reversible sequences of edits and can undo too far.
- The product can replay an undone operation accurately against the same target.
- A visible command state can show when redo is available, unavailable, cleared, or invalid.
Maintain a redo stack after undo, expose Redo only when a valid undone operation exists, replay the latest undone operation against the same target, and clear or branch that stack when new edits invalidate the future history.
Users can undo too far, change their mind after an undo, or need to reapply a reversible edit without reconstructing the work manually.
The product supports reversible editing, ordering, formatting, drawing, document, layout, or configuration actions.
Maintain a redo stack after undo, expose Redo only when a valid undone operation exists, replay the latest undone operation against the same target, and clear or branch that stack when new edits invalidate the future history.
No-redo state before any undo has happened.
Redo button looks available but does nothing because no redo stack exists.
Expose Redo as a named button, menu item, or command row when editing commands are visible.
Undo and redo a document change, then branch with a new edit and compare stale, hidden, wrong-target, and shortcut-only redo failures.
Launch the live UI/UX lab when you want to inspect states, keyboard behavior, and common failure modes.
No-redo state before any undo has happened.
Common platform shortcuts may invoke redo when focus is in an editor context and redo is available.
Leaving redo enabled after a new edit invalidates the undone future.
Apple - checked
Apple frames undo and redo as expected reversal mechanisms that support recovery and safe exploration.
Microsoft - checked
VS Code exposes undo and redo as command identifiers with platform keyboard shortcuts.
Microsoft - checked
Microsoft documents redo as redoing typing that was undone with undo.
Last verified: