Save and revert changes
MPS 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. Saving files can be also triggered by third-party plugins.
Most of the events that trigger auto-save are predefined and cannot be configured, but you can be sure that changes will not be lost .
In the Settings dialog (CtrlAlt0S) , select Appearance & Behavior | System Settings.
Under Sync external changes, configure the following options:
Save files when switching to a different application or a built-in terminal: Save all modified files when you switch from MPS to a different application.
Save files if the IDE is idle for N seconds: Save all modified files at regular time intervals.
Apply the changes and close the dialog.
You can mark unsaved files on the file tab:
In the Settings dialog (CtrlAlt0S) , select Editor | General | Editor Tabs.
Select the Mark modified checkbox.
Apply the changes and close the dialog.
After that, the tab of the file in which you have unsaved changes will be marked with a blue dot.
If you use version control integration, names of all modified files will be also marked with a dedicated color on the file tab and in the Project tool window.
You can always save your changes manually:
Press Ctrl0S or select File | Save All from the main menu.
For the most recent changes, including refactorings, press Ctrl0Z or choose Edit | Undo from the menu.
For the most robust tracking of all changes, use a version control system.
Thanks for your feedback!