去掉默认保存,
File—>settings—->System Settings—>去掉勾选synchronize files on frame or editor tab activation和去掉勾选save files on frame deactivation

1
2
3
synchronize files on frame or editor tab activation,就是当前应用是intellij时,自动保存文件,比如从浏览器切换到intellij,intellij就是active,会自动保存。
save files on frame deactivation,就是从intellij切换到其他应用时,保存文件。

标志修改文件为星号,
File—->Settings—–>Editor—->General—->Editor tabs—->勾选 mark modified files as asterisk