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, the undo history is lost.

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

See Also

Reference:

Web Resources: