Saving and Reverting Changes
You can save the results of editing yourself, and also configure IntelliJ IDEA 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.
To save results of editing, do one of the following
- On the main menu, choose .
- Press Ctrl+S.
To alert you about unsaved changes
To enable auto-saving on the regular basis
To enable saving changes when switching to other applications
- 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 IntelliJ IDEA's version in the memory cache and the version produced in the file system. IntelliJ IDEA prompts you to resolve the conflict.
To enable preserving temporary files while saving changes
- 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.
To revert change, do one of the followings
- Use the local history as the most powerful way of reverting changes.
- Press Ctrl+Z.