Skip to content
Tutorials Center
My learning

Topics

Lesson 8 of 37 ยท Interface and Documents

Undo, History and Preferences

Recover from mistakes with undo, the History panel and snapshots, set history states and performance preferences, and keep your work safe with auto-recovery.

Everyone makes mistakes while editing, and Photoshop gives you several safety nets: simple undo, a list of past steps in the History panel, snapshots you can return to, and the History Brush that paints a past state back in. Knowing how they work (and where they stop working) keeps you experimenting fearlessly. This lesson also covers the preferences that decide how much history Photoshop keeps and how fast it runs.

Photoshop does not run on this site. The stand-in below models the history stack so you can see why a new edit erases the redo list.

Undo and redo

  • Ctrl/Cmd + Z undoes or redoes the last step (a toggle, in the default setting).
  • Ctrl/Cmd + Alt/Option + Z steps back through multiple undos.
  • Ctrl/Cmd + Shift + Z steps forward (redo).

By default, plain Ctrl/Cmd + Z only toggles between the last two states, which surprises people who expect several undos. You can change this: Edit > Keyboard Shortcuts, or the "Use Legacy Undo Shortcuts" option under Edit > Preferences > General. With that option off, Ctrl/Cmd + Z behaves like most programs (multi-level undo), which many users prefer. Check which behaviour you have in your version.

A few things can't be undone with these keys: File > Save (the save itself), and the Edit > Purge command, which clears undo and clipboard memory. Closing a document without saving loses everything.

The History panel

Open Window > History. It lists your recent steps from oldest at the top to newest at the bottom, such as Open, Levels, Crop, Brush Tool. Click any earlier step to see the document as it was, and keep working from there. If you make a new edit while stepping back, all later steps are discarded; this is the same rule as undo in a text editor.

Important facts:

  • History holds 50 states by default. Raise it in Edit > Preferences > Performance > History States (up to 1000), at the price of more memory.
  • History is per session. When you close the document, it is gone. Saving does not clear it while the file stays open, but reopening starts with a fresh list.
  • A brush stroke is one step, and big filters are one step too, so the limit is easily reached with painting. That is why 50 steps can feel short on a retouching session.

Ways to go back

Undo Ctrl/Cmd + Z for the last step.
History panel Click any earlier step.
Snapshot A named state you can return to.
History Brush Paint a past state back in.

A new edit clears the later steps.

1 / 2

Snapshots

A snapshot is a saved state shown at the top of the History panel. Click the camera icon at the bottom of the panel (or choose New Snapshot from the panel menu) to take one. Hold Alt/Option when clicking to name it. Unlike ordinary history, a snapshot is not pushed out when the 50-state limit is reached, so it is the best way to mark "before retouching" or "version A". Snapshots vanish when you close the file, so they are not a substitute for saving versions.

The History Brush

The History Brush tool (Y) paints from a chosen history state or snapshot back onto the current image. In the History panel, click the box in the left column next to a state to set it as the source. Then paint with the History Brush where you want that older look to return. For example, you can sharpen an entire image, then paint the soft skin back from the snapshot taken before sharpening. The Art History Brush uses the same source to paint stylised strokes. Today most people use layers and masks for this job because they are more flexible, but the History Brush remains a fast tool.

Revert and Save versions

File > Revert (F12) reopens the file as last saved, undoing all unsaved work. Combine it with disciplined saving: File > Save As with names like project-v2.psd at milestones, and use Save a Copy for deliveries. For recovery after crashes, turn on Automatically Save Recovery Information Every under Edit > Preferences > File Handling (default 10 minutes). After a crash, Photoshop offers to recover the files when you restart.

A history stack in code

Here is a stand-in that models history states and the "new edit clears the future" rule, with a limit on states. It is not Photoshop code, just the same logic.

JS Stand-in: history stack with a limit

Press Run (or Ctrl + Enter) to see the console output here.

No output.

At the end the first two steps, "Open" and "Levels", are gone because the limit of 5 pushed them out, while the snapshot stays recorded. That is why a snapshot marks a state that must not be lost.

Key preferences

Open preferences with Edit > Preferences (Windows) or Photoshop > Settings (macOS), shortcut Ctrl/Cmd + K.

  • General: the legacy undo option, Home screen behaviour, and Reset Preferences On Quit (a first aid step when Photoshop acts strangely).
  • Interface: theme colours and UI scaling.
  • Performance: how much RAM Photoshop may use (the default is around 70%, and raising it to 80-85% usually helps unless you run other heavy apps), the History States value, Cache Levels and Cache Tile Size (leave on defaults unless you work on huge files), and Graphics Processor Settings (the GPU accelerates many features; if you see glitches, try turning it off).
  • Scratch Disks: when RAM runs out, Photoshop writes temporary data to a scratch disk. Use a fast SSD with free space. A full scratch disk produces the "scratch disks are full" error, and the fix is to free space or select another drive here.
  • Units & Rulers: default units for rulers and type.
  • Cursors: switch brush cursors between precise and brush-size outlines. If you see a crosshair when you expect a circle, press Caps Lock.

If Photoshop becomes unstable, hold Ctrl + Alt + Shift (Windows) or Cmd + Option + Shift (macOS) while launching to reset preferences. Do this before reinstalling.

Habits that save work

  1. Take a snapshot before a risky stage such as global sharpening.
  2. Prefer layers, masks and adjustment layers, which stay editable after the history is gone.
  3. Save versions with Save As rather than trusting one file.
  4. Close unused documents so that memory stays available.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. You step back three states in the History panel and then paint a brush stroke. What happens to the three later steps?

    A new edit after stepping back removes the later history states.
  2. 2. How many history states does Photoshop keep by default?

    The default is 50 states, adjustable up to 1000 in Performance preferences.
  3. 3. What is a snapshot good for?

    Snapshots persist during the session, even when older history states are discarded.
  4. 4. Which tool paints a previous history state back into the image?

    The History Brush uses a chosen history state or snapshot as its source.

Summary

  • Use Ctrl/Cmd + Z, the History panel (50 states by default) and snapshots to go back.
  • A new edit clears later history; history disappears when the file closes.
  • The History Brush paints from an earlier state; layers and masks are usually more flexible.
  • Save versions and enable auto-recovery to protect real work.
  • Performance preferences (RAM, scratch disks, GPU) control speed and stability.

Next: The Toolbar, Options Bar and Keyboard Shortcuts