You can save the results of editing yourself, and also configure PyCharm to enable automatic saving of changes. This section describes how to:
- Save changes when done with editing.
- Alert you about unsaved changes by marking a modified file in the editor tab with an asterisk next to its name.
- Enable auto-saving changes on the regular basis.
- Enable auto-saving changes on switching to the other applications.
- Enable preserving temporary files.
- Revert changes.
- Open Settings dialog box, expand the Editor node, and click Editor Tabs.
- In the Editor Tabs page, select the Mark modified tab with asterisk check box.
- In the Settings dialog box, expand Appearance & Behavior node, and click System Settings.
- Select the check box Save files automatically, if the application is idle for and specify the number of seconds of idleness required to activate saving.
- In the Settings dialog box, expand Appearance & Behavior node, and click System Settings.
- Select the Save files on frame de activation check box.
Note that if this check box is cleared, a conflict may occur between the PyCharm's version in the memory cache and the version produced in the file system. PyCharm prompts you to resolve the conflict.
- In the IDE Settings section of the Settings dialog box, click General.
- Select the Use "safe write" check box.
Note that if this check box is selected, modified file will be first saved as a temporary file. If the save operation is completed successfully, the temporary file will renamed, and the original file will be deleted.
- Use the local history as the most powerful way of reverting changes.
- Press Ctrl+Z or Alt+Backspace.