PyCharm Edu 3.0 Help

Undoing and Redoing Changes

On this page:

Basics

The Undo command discards the last changes to the file in the editor. The Redo command discards the results of the last Undo command.

You can undo or redo your changes as many times as required. However, when you exit PyCharm Edu, the undo history is lost.

PyCharm Edu smartly defines the logical steps that can be undone and redone. The following events signal about the end of a logical step:

  • Pressing Enter.
  • Repositioning the mouse cursor.
  • Using navigation keyboard shortcuts.
  • Cutting or pasting.
  • Pressing Tab.

PyCharm Edu expands the undo and redo mechanism to complex operations, such as reformatting or refactoring source code, creating or deleting files. When you undo or redo a complex operation, PyCharm Edu requests for your confirmation.

How it works?

PyCharm Edu moves the caret before each step of undo/redo, and then performs the Undo/Redo actions.

Undoing and redoing changes

To undo an action, do one of the following

  • On the main menu, choose Edit | Undo.
  • Press Ctrl+Z.

To redo an action, do one of the following

  • On the main menu, choose Edit | Redo.
  • Press Ctrl+Shift+Z.

See Also

Last modified: 30 August 2016