- On the main menu, choose .
- Press Ctrl+Z or Alt+Backspace.
- On the main menu, choose .
- Press Ctrl+Shift+Z or Alt+Shift+Backspace.
PyCharm 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 requests on your confirmation.
