intellij IDEA turns off auto save

From: http://blog.csdn.net/wangjun5159/article/details/55223630


First of all, let me state that intellij does not automatically compile by default, which is different from Eclipse.

By default, IntelliJ IDEA doesn't automatically compile projects on saving.
1
2
In addition, we will find that IntelliJ will automatically save by default, and the modified files are not marked with asterisks.
Remove the default save,
File—>settings—->System Settings—> uncheck synchronize files on frame or editor tab activation and uncheck save files on frame deactivation

synchronize files on frame or editor tab activation, that is, when the current application is intellij , automatically save the file, such as switching from the browser to intellij, intellij is active, it will be automatically saved.

save files on frame deactivation, is to save files when switching from intellij to other applications.

Note that it does not mean that autosave is turned off by doing the following two points. There are other conditions that can trigger saving, such as compiling, closing intellij, starting middleware servers (tomcat, jetty), etc., the official reference

When does IntelliJ IDEA auto save changed files?
Autosave is initiated by:
- ​​Compiling a project, a module or a class
- Starting a run/debug configuration-
- Performing a version control operation such as pull, commit, push, etc.-
- Closing a file in the editor
- Closing a project
- Quitting the IDE
In fact, there is a lot more autosave triggers, and only the most important ones are mentioned above. The


flag modifying the file is an asterisk

File-->Settings-->Editor-->General-->Editor tabs --->Check mark modified files as asterisk to

save all After

configuring the above two steps, use the save all (ctrl+s) command to save the files manually.


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326172375&siteId=291194637