User Guide Cancel

Undo and history

  1. Photoshop User Guide
  2. Introduction to Photoshop
    1. Dream it. Make it.
    2. What's new in Photoshop
    3. Edit your first photo
    4. Create documents
    5. Photoshop | Common Questions
    6. Photoshop system requirements
    7. Get to know Photoshop
    8. Keep Photoshop up to date
  3. Photoshop and other Adobe products and services
    1. Work with Illustrator artwork in Photoshop
    2. Work with Photoshop files in InDesign
    3. Substance 3D Materials for Photoshop
    4. Use the Capture in-app extension in Photoshop
  4. Photoshop on the iPad (not available in mainland China)
    1. Photoshop on the iPad | Common questions
    2. Get to know the workspace
    3. System requirements | Photoshop on the iPad
    4. Create, open, and export documents
    5. Add photos
    6. Work with layers
    7. Draw and paint with brushes
    8. Make selections and add masks
    9. Retouch your composites
    10. Work with adjustment layers
    11. Adjust the tonality of your composite with Curves
    12. Apply transform operations
    13. Crop and rotate your composites
    14. Rotate, pan, zoom, and reset the canvas
    15. Work with Type layers
    16. Work with Photoshop and Lightroom
    17. Get missing fonts in Photoshop on the iPad
    18. Japanese Text in Photoshop on the iPad
    19. Manage app settings
    20. Touch shortcuts and gestures
    21. Keyboard shortcuts
    22. Edit your image size
    23. Livestream as you create in Photoshop on the iPad
    24. Correct imperfections with the Healing Brush
    25. Create brushes in Capture and use them in Photoshop on the iPad
    26. Work with Camera Raw files
    27. Create and work with Smart Objects
    28. Adjust exposure in your images with Dodge and Burn
    29. Auto adjustment commands in Photoshop on the iPad
    30. Smudge areas in your images with Photoshop on the iPad
    31. Saturate or desaturate your images using Sponge tool
    32. Content aware fill for iPad
  5. Photoshop on the web (not available in mainland China)
    1. Common questions
    2. System requirements
    3. Keyboard shortcuts
    4. Supported file types
    5. Introduction to the workspace
    6. Open and work with cloud documents
    7. Generative AI features
    8. Basic concepts of editing
    9. Quick Actions
    10. Work with layers
    11. Retouch images and remove imperfections
    12. Make quick selections
    13. Image improvements with Adjustment Layers
    14. Add a fill layer
    15. Move, transform, and crop images
    16. Draw and paint
    17. Draw and edit Shapes
    18. Work with Type layers
    19. Work with anyone on the web
    20. Manage app settings
    21. Generate Image
    22. Generate Background
    23. Reference Image
  6. Photoshop (beta) (not available in mainland China)
    1. Get started with Creative Cloud Beta apps
    2. Photoshop (beta) on the desktop
    3. Reference Image
  7. Generative AI (not available in mainland China) 
    1. Common questions on generative AI in Photoshop
    2. Generative Fill in Photoshop on the desktop
    3. Generate Image with descriptive text prompts
    4. Generative Expand in Photoshop on the desktop
    5. Replace background with Generate background
    6. Get new variations with Generate Similar
    7. Generative Fill in Photoshop on the iPad
    8. Generative Expand in Photoshop on the iPad
    9. Generative AI features in Photoshop on the web
  8. Content authenticity (not available in mainland China)
    1. Content credentials in Photoshop
    2. Identity and provenance for NFTs
    3. Connect accounts for creative attribution
  9. Cloud documents (not available in mainland China)
    1. Photoshop cloud documents | Common questions
    2. Photoshop cloud documents | Workflow questions
    3. Manage and work with cloud documents in Photoshop
    4. Upgrade cloud storage for Photoshop
    5. Unable to create or save a cloud document
    6. Solve Photoshop cloud document errors
    7. Collect cloud document sync logs
    8. Invite others to edit your cloud documents
    9. Share files and comment in-app
  10. Workspace
    1. Workspace basics
    2. Preferences
    3. Learn faster with the Photoshop Discover Panel
    4. Create documents
    5. Place files
    6. Default keyboard shortcuts
    7. Customize keyboard shortcuts
    8. Tool galleries
    9. Performance preferences
    10. Use tools
    11. Presets
    12. Grid and guides
    13. Touch gestures
    14. Use the Touch Bar with Photoshop
    15. Touch capabilities and customizable workspaces
    16. Technology previews
    17. Metadata and notes
    18. Place Photoshop images in other applications
    19. Rulers
    20. Show or hide non-printing Extras
    21. Specify columns for an image
    22. Undo and history
    23. Panels and menus
    24. Position elements with snapping
    25. Position with the Ruler tool
  11. Web, screen, and app design
    1. Photoshop for design
    2. Artboards
    3. Device Preview
    4. Copy CSS from layers
    5. Slice web pages
    6. HTML options for slices
    7. Modify slice layout
    8. Work with web graphics
    9. Create web photo galleries
  12. Image and color basics
    1. How to resize images
    2. Work with raster and vector images
    3. Image size and resolution
    4. Acquire images from cameras and scanners
    5. Create, open, and import images
    6. View images
    7. Invalid JPEG Marker error | Opening images
    8. Viewing multiple images
    9. Customize color pickers and swatches
    10. High dynamic range images
    11. Match colors in your image
    12. Convert between color modes
    13. Color modes
    14. Erase parts of an image
    15. Blending modes
    16. Choose colors
    17. Customize indexed color tables
    18. Image information
    19. Distort filters are unavailable
    20. About color
    21. Color and monochrome adjustments using channels
    22. Choose colors in the Color and Swatches panels
    23. Sample
    24. Color mode or Image mode
    25. Color cast
    26. Add a conditional mode change to an action
    27. Add swatches from HTML CSS and SVG
    28. Bit depth and preferences
  13. Layers
    1. Layer basics
    2. Nondestructive editing
    3. Create and manage layers and groups
    4. Select, group, and link layers
    5. Place images into frames
    6. Layer opacity and blending
    7. Mask layers
    8. Apply Smart Filters
    9. Layer comps
    10. Move, stack, and lock layers
    11. Mask layers with vector masks
    12. Manage layers and groups
    13. Layer effects and styles
    14. Edit layer masks
    15. Extract assets
    16. Reveal layers with clipping masks
    17. Generate image assets from layers
    18. Work with Smart Objects
    19. Blending modes
    20. Combine multiple images into a group portrait
    21. Combine images with Auto-Blend Layers
    22. Align and distribute layers
    23. Copy CSS from layers
    24. Load selections from a layer or layer mask's boundaries
    25. Knockout to reveal content from other layers
  14. Selections
    1. Get started with selections
    2. Make selections in your composite
    3. Select and Mask workspace
    4. Select with the marquee tools
    5. Select with the lasso tools
    6. Adjust pixel selections
    7. Move, copy, and delete selected pixels
    8. Create a temporary quick mask
    9. Select a color range in an image
    10. Convert between paths and selection borders
    11. Channel basics
    12. Save selections and alpha channel masks
    13. Select the image areas in focus
    14. Duplicate, split, and merge channels
    15. Channel calculations
  15. Image adjustments
    1. Replace object colors
    2. Perspective warp
    3. Reduce camera shake blurring
    4. Healing brush examples
    5. Export color lookup tables
    6. Adjust image sharpness and blur
    7. Understand color adjustments
    8. Apply a Brightness/Contrast adjustment
    9. Adjust shadow and highlight detail
    10. Levels adjustment
    11. Adjust hue and saturation
    12. Adjust vibrance
    13. Adjust color saturation in image areas
    14. Make quick tonal adjustments
    15. Apply special color effects to images
    16. Enhance your image with color balance adjustments
    17. High dynamic range images
    18. View histograms and pixel values
    19. Match colors in your image
    20. Crop and straighten photos
    21. Convert a color image to black and white
    22. Adjustment and fill layers
    23. Curves adjustment
    24. Blending modes
    25. Target images for press
    26. Adjust color and tone with Levels and Curves eyedroppers
    27. Adjust HDR exposure and toning
    28. Dodge or burn image areas
    29. Make selective color adjustments
  16. Adobe Camera Raw
    1. Camera Raw system requirements
    2. What's new in Camera Raw
    3. Introduction to Camera Raw
    4. Create panoramas
    5. Supported lenses
    6. Vignette, grain, and dehaze effects in Camera Raw
    7. Default keyboard shortcuts
    8. Automatic perspective correction in Camera Raw
    9. Radial Filter in Camera Raw
    10. Manage Camera Raw settings
    11. Open, process, and save images in Camera Raw
    12. Repair images with the Enhanced Spot Removal tool in Camera Raw
    13. Rotate, crop, and adjust images
    14. Adjust color rendering in Camera Raw
    15. Process versions in Camera Raw
    16. Make local adjustments in Camera Raw
  17. Image repair and restoration
    1. Remove Tool
    2. Remove objects from your photos with Content-Aware Fill
    3. Content-Aware Patch and Move
    4. Retouch and repair photos
    5. Correct image distortion and noise
    6. Basic troubleshooting steps to fix most issues
  18. Image enhancement and transformation
    1. Replace sky in your images
    2. Transform objects
    3. Adjust crop, rotation, and canvas size
    4. How to crop and straighten photos
    5. Create and edit panoramic images
    6. Warp images, shapes, and paths
    7. Vanishing Point
    8. Content-aware scaling
    9. Transform images, shapes, and paths
  19. Drawing and painting
    1. Paint symmetrical patterns
    2. Draw rectangles and modify stroke options
    3. About drawing
    4. Draw and edit shapes
    5. Painting tools
    6. Create and modify brushes
    7. Blending modes
    8. Add color to paths
    9. Edit paths
    10. Paint with the Mixer Brush
    11. Brush presets
    12. Gradients
    13. Gradient interpolation
    14. Fill and stroke selections, layers, and paths
    15. Draw with the Pen tools
    16. Create patterns
    17. Generate a pattern using the Pattern Maker
    18. Manage paths
    19. Manage pattern libraries and presets
    20. Draw or paint with a graphics tablet
    21. Create textured brushes
    22. Add dynamic elements to brushes
    23. Gradient
    24. Paint stylized strokes with the Art History Brush
    25. Paint with a pattern
    26. Sync presets on multiple devices
    27. Migrate presets, actions, and settings
  20. Text
    1. Add and edit the text
    2. Unified Text Engine
    3. Work with OpenType SVG fonts
    4. Format characters
    5. Format paragraphs
    6. How to create type effects
    7. Edit text
    8. Line and character spacing
    9. Arabic and Hebrew type
    10. Fonts
    11. Troubleshoot fonts
    12. Asian type
    13. Create type
  21. Filters and effects
    1. Use the Blur Gallery
    2. Filter basics
    3. Filter effects reference
    4. Add Lighting Effects
    5. Use the Adaptive Wide Angle filter
    6. Use the Oil Paint filter
    7. Use the Liquify filter
    8. Layer effects and styles
    9. Apply specific filters
    10. Smudge image areas
  22. Saving and exporting
    1. Save your files in Photoshop
    2. Export your files in Photoshop
    3. Supported file formats
    4. Save files in graphics formats
    5. Move designs between Photoshop and Illustrator
    6. Save and export video and animations
    7. Save PDF files
    8. Digimarc copyright protection
  23. Color Management
    1. Understanding color management
    2. Keeping colors consistent
    3. Color settings
    4. Duotones
    5. Work with color profiles
    6. Color-managing documents for online viewing
    7. Color-managing documents when printing
    8. Color-managing imported images
    9. Proofing colors
  24. Web, screen, and app design
    1. Photoshop for design
    2. Artboards
    3. Device Preview
    4. Copy CSS from layers
    5. Slice web pages
    6. HTML options for slices
    7. Modify slice layout
    8. Work with web graphics
    9. Create web photo galleries
  25. Video and animation
    1. Video editing in Photoshop
    2. Edit video and animation layers
    3. Video and animation overview
    4. Preview video and animations
    5. Paint frames in video layers
    6. Import video files and image sequences
    7. Create frame animations
    8. Creative Cloud 3D Animation (Preview)
    9. Create timeline animations
    10. Create images for video
  26. Printing
    1. Print 3D objects
    2. Print from Photoshop
    3. Print with color management
    4. Contact Sheets and PDF Presentations
    5. Print photos in a picture package layout
    6. Print spot colors
    7. Print images to a commercial printing press
    8. Improve color prints from Photoshop
    9. Troubleshoot printing problems | Photoshop
  27. Automation
    1. Creating actions
    2. Create data-driven graphics
    3. Scripting
    4. Process a batch of files
    5. Play and manage actions
    6. Add conditional actions
    7. About actions and the Actions panel
    8. Record tools in actions
    9. Add a conditional mode change to an action
    10. Photoshop UI toolkit for plug-ins and scripts
  28. Troubleshooting
    1. Fixed issues 
    2. Known issues
    3. Optimize Photoshop performance
    4. Basic troubleshooting
    5. Troubleshoot crash or freeze
    6. Troubleshoot program errors
    7. Troubleshoot scratch disk full errors
    8. Troubleshoot GPU and graphics driver issues
    9. Find missing tools
    10. Photoshop 3D | Common questions around discontinued features

Learn how to use the Undo/Redo commands and the History panel to control the state of your images in Adobe Photoshop.

By using the Undo/Redo commands and the History panel, you can easily control the state(s) of your images.

Adobe Photoshop deeplink

Try it in the app
Learn to use the History panel in a few simple steps.

Use the Undo or Redo commands

Updated in Photoshop CC 20.0 (October 2018 release)

Beginning with the October 2018 release of Photoshop CC (20.0), you can undo multiple steps in your Photoshop document using Control + Z (Win) / Command + Z (Mac). This new multiple undo mode is enabled by default.

To perform undo or redo operation, do the following:

  • Undo: Moves one step back in the undo chain. Choose Edit > Undo or use the keyboard shortcut Control + Z (Win) / Command + Z (Mac).
  • Redo: Moves one step forward. Choose Edit > Redo or use the keyboard shortcut Shift + Control + Z (Win) / Shift + Command + Z (Mac).

The Edit menu also displays the name of the step that will be undone next to the Undo and Redo commands. For example, Edit > Undo Edit Type.

(Photoshop)

To switch back to the legacy undo mode in Photoshop, do the following:

  1. From the menu bar, choose Edit > Keyboards Shortcuts.
  2. In the Keyboard Shortcuts And Menus dialog, select Use Legacy Undo Shortcuts and click OK.
  3. Restart Photoshop.

(Adobe Camera Raw)

To switch back to the legacy undo mode in Adobe Camera Raw, do the following:

  1. From the menu bar in Photoshop, choose Edit > Preferences > File Handling.
  2. In the File Compatibility section, click Camera Raw Preferences.
  3. In the Camera Raw Preferences dialog, select Use Legacy Undo Shortcuts and click OK.
  4. Restart Photoshop.

Revert to the last saved version

  1. Choose File > Revert.
    Note:

    Revert is added as a history state in the History panel and can be undone.

Restore part of an image to its previously saved version

  1. Do one of the following:
    • Use the History Brush tool  to paint with the selected state or snapshot on the History panel.

    • Use the Eraser tool  with the Erase To History option selected.

    • Select the area you want to restore, and choose Edit > Fill. For Use, choose History, and click OK.

    Note:

    To restore the image with a snapshot of the initial state of the document, choose History Options from the Panel menu and make sure that the Automatically Create First Snapshot option is selected.

Cancel an operation

  1. Hold down Esc until the operation in progress has stopped. In Mac OS, you can also press Command+period.

Receive notification when an operation is completed

A progress bar indicates that an operation is being performed. You can interrupt the operation or have the program notify you when it has finished the operation.

  1. Do one of the following: Choose Edit > Preferences > General (Windows) or Photoshop > Preferences > General (Mac OS).

  2. Select Beep When Done.
  3. Click OK.

Using the History panel

You can use the History panel to jump to any recent state of the image created during the current working session. Each time you apply a change to an image, the new state of that image is added to the panel.

For example, if you select, paint, and rotate part of an image, each of those states is listed separately in the panel. When you select one of the states, the image reverts to how it looked when that change was first applied. You can then work from that state.

You can also use the History panel to delete image states and, in Photoshop, to create a document from a state or snapshot.

To display the History panel, choose Window > History, or click the History panel tab.

Photoshop History panel
Photoshop History panel

A. Sets the source for the history brush B. Thumbnail of a snapshot C. History state D. History state slider 

Keep the following in mind when using the History panel:

  • Program-wide changes, such as changes to panels, color settings, actions, and preferences, are not reflected in the History panel, because they are not changes to a particular image.

  • By default, the History panel lists the previous 20 states. You can change the number of remembered states by setting a preference under Preferences > Performance. Older states are automatically deleted to free more memory for Photoshop. To keep a particular state throughout your work session, make a snapshot of the state (see Make a snapshot of an image).

  • Once you close and reopen the document, all states and snapshots from the last working session are cleared from the panel.

  • By default, a snapshot of the initial state of the document is displayed at the top of the panel.

  • States are added to the bottom of the list. That is, the oldest state is at the top of the list, the most recent one at the bottom.

  • Each state is listed with the name of the tool or command used to change the image.

  • By default, when you select a state, the states below it are dimmed. This way you can easily see which changes will be discarded if you continue working from the selected state.

  • By default, selecting a state and then changing the image eliminates all states that come after it.

  • If you select a state and then change the image, eliminating the states that came after, you can use the Undo command to undo the last change and restore the eliminated states.

  • By default, deleting a state deletes that state and those that came after it. If you choose the Allow Non-Linear History option, deleting a state deletes only that state.

Revert to a previous image state

  1. Do any of the following:
    • Click the name of the state.

    • Choose Step Forward or Step Backward from the History panel menu or the Edit menu to move to the next or previous state.

Delete one or more image states

  1. Do one of the following:
    • Click the name of the state, and choose Delete from the History panel menu to delete that change and those that came after it.

    • Drag the state to the Delete icon  to delete that change and those that came after it.

    • Choose Clear History from the panel menu to delete the list of states from the History panel, without changing the image. This option doesn’t reduce the amount of memory used by Photoshop.

    • Hold down Alt (Windows) or Option (Mac OS), and choose Clear History from the panel menu to purge the list of states without changing the image. If you get a message that Photoshop is low on memory, purging states is useful, because the command deletes the states from the Undo buffer and frees up memory. You can’t undo the Clear History command.

    • Choose Edit > Purge > Histories to purge the list of states for all open documents. You can’t undo this action.

Create or replace a document with an image state

  1. Do one of the following:
    • Drag a state or snapshot onto the Create A New Document From Current State button  in the History panel. The history list for the newly created document contains only the Duplicate State entry.

    • Select a state or snapshot, and click the Create A New Document From Current State button . The history list for the newly created document contains only the Duplicate State entry.

    • Select a state or snapshot, and choose New Document from the History panel menu. The history list for the newly created document contains only the Duplicate State entry.

    • Drag a state onto an existing document.

    Note:

    To save one or more snapshots or image states for use in a later editing session, create a new file for each state you save, and save each in a separate file. When you reopen your original file, plan to open the other saved files also. You can drag each file’s initial snapshot to the original image to access the snapshots again from the original image’s History panel.

Set history options

You can specify the maximum number of items to include in the History panel and set other options to customize the panel.

  1. Choose History Options from the History panel menu.
  2. Select an option:

    Automatically Create First Snapshot

    Automatically creates a snapshot of the initial state of the image when the document is opened.

    Automatically Create New Snapshot When Saving

    Generates a snapshot every time you save.

    Allow Non-Linear History

    Makes changes to a selected state without deleting the states that come after. Normally, when you select a state and change the image, all states that come after the selected one are deleted. In this way, the History panel can display a list of the editing steps in the order that they were made. By recording states in a nonlinear way, you can select a state, make a change to the image, and delete just that state. The change is appended at the end of the list.

    Show New Snapshot Dialog By Default

    Forces Photoshop to prompt you for snapshot names even when you use the buttons on the panel.

    Make Layer Visibility Changes Undoable

    This option is selected by default. Turning layer visibility on or off is recorded as a history step. Deselect this option to exclude layer visibility changes in history steps.

Set Edit History Log options

You may need to keep careful track of what’s been done to a file in Photoshop, either for your own records, client records, or legal purposes. The Edit History Log helps you keep a textual history of changes made to an image. You can view the Edit History Log metadata using Adobe Bridge or the File Info dialog box.

You can choose to export the text to an external log file, or you can store the information in the metadata of edited files. Storing many editing operations as file metadata increases file size; such files may take longer than usual to open and save.

Note:

If you need to prove that the log file hasn’t been tampered with, keep the edit log in the file’s metadata, and then use Adobe Acrobat to digitally sign the log file.

By default, history log data about each session is saved as metadata embedded in the image file. You can specify where the history log data is saved and the level of detail contained in the history log.

  1. Choose Edit > Preferences > General (Windows) or Photoshop > Preferences > General (Mac OS).
  2. Click the History Log preference to toggle from on to off or vice versa.
  3. For the Save Log Items To option, choose one of the following:

    Metadata

    Saves the history log as metadata embedded in each file.

    Text File

    Exports the history log to a text file. You are prompted to name the text file and choose a location in which to store it.

    Both

    Stores metadata in the file and creates a text file.

    Note:

    If you want to save the text file in a different location or save another text file, click the Choose button, specify where to save the text file, name the file if necessary, and click Save.

  4. From the Edit Log Items menu, choose one of the following options:

    Sessions Only

    Keeps a record of each time you start or quit Photoshop and each time you open and close files (each image’s filename is included). Does not include any information about edits made to the file.

    Concise

    Includes the text that appears in the History panel in addition to the Sessions information.

    Detailed

    Includes the text that appears in the Actions panel in addition to the Concise information. If you need a complete history of all changes made to files, choose Detailed.

Make a snapshot of an image

The Snapshot command lets you make a temporary copy (or snapshot) of any state of the image. The new snapshot is added to the list of snapshots at the top of the History panel. Selecting a snapshot lets you work from that version of the image.

Snapshots are similar to the states listed in the History panel, but they offer additional advantages:

  • You can name a snapshot to make it easy to identify.

  • Snapshots can be stored for an entire work session.

  • You can compare effects easily. For example, you can take a snapshot before and after applying a filter. Then select the first snapshot, and try the same filter with different settings. Switch between the snapshots to find the settings you like best.

  • With snapshots, you can recover your work easily. When you experiment with a complex technique or apply an action, take a snapshot first. If you’re not satisfied with the results, you can select the snapshot to undo all the steps.

Note:

Snapshots are not saved with the image—closing an image deletes its snapshots. Also, unless you select the Allow Non-Linear History option, selecting a snapshot and changing the image deletes all of the states currently listed in the History panel.

Create a snapshot

  1. Select a state and do one of the following:
    • To automatically create a snapshot, click the Create New Snapshot button  on the History panel, or if Automatically Create New Snapshot When Saving is selected in the history options, choose New Snapshot from the History panel menu.

    • To set options when creating a snapshot, choose New Snapshot from the History panel menu, or Alt-click (Windows) or Option-click (Mac OS) the Create New Snapshot button.

  2. Enter the name of the snapshot in the Name text box.

  3. Choose the snapshot contents from the From menu:

    Full Document

    Makes a snapshot of all layers in the image at that state

    Merged Layers

    Makes a snapshot that merges all layers in the image at that state

    Current Layer

    Makes a snapshot of only the currently selected layer at that state

Work with snapshots

  1. Do one of the following:
    • To select a snapshot, click the name of the snapshot or drag the slider at the left of the snapshot up or down to a different snapshot.

    • To rename a snapshot, double-click the snapshot and enter a name.

    • To delete a snapshot, select the snapshot and either choose Delete from the panel menu, click the Delete icon , or drag the snapshot to the Delete icon.

Paint with a state or snapshot of an image

The History Brush tool  lets you paint a copy of one image state or snapshot into the current image window. This tool makes a copy, or sample, of the image and then paints with it.

For example, you might make a snapshot of a change you made with a painting tool or filter (with the Full Document option selected when you create the snapshot). After undoing the change to the image, you could use the History Brush tool to apply the change selectively to areas of the image. Unless you select a merged snapshot, the History Brush tool paints from a layer in the selected state to the same layer in another state.

The History Brush tool copies from one state or snapshot to another, but only at the same location. In Photoshop, you can also paint with the Art History Brush tool to create special effects.

  1. Select the History Brush tool  .
  2. Do one of the following in the options bar:
    • Specify the opacity and blending mode.

    • Choose a brush and set brush options.

  3. In the History panel, click the left column of the state or snapshot to be used as the source for the History Brush tool.
  4. Drag to paint with the History Brush tool.

 Adobe

Get help faster and easier

New user?