IntelliJ IDEA 2018.2 Help

Working with source code

IntelliJ IDEA automatically saves changes that you make in your files. Saving is triggered by various events, such as compiling, running, debugging, performing version control operations, closing a file or a project, or quitting the IDE entirely. The actual events are predefined and cannot be configured, but you can be sure that changes will not be lost as you work.

Configure autosave behavior

  1. In the Settings/Preferences dialog (Ctrl+Alt+S), expand Appearance and Behavior, and click System Settings.

  2. Under Synchronization, configure the following options:
    • Save files on frame deactivation (when you switch to a different application)

    • Save files automatically if application is idle for N seconds

Mark files with unsaved changes

  1. In the Settings/Preferences dialog (Ctrl+Alt+S), expand Editor, then expand General, and click Editor Tabs.

  2. Select the Mark modified tabs with asterisk checkbox.

Revert changes

Last modified: 25 October 2018