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. 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 and you can find all of them in local history.
并不是实时的,只是感觉像是,实际上实在一些事件触发后,才会进行自动保存。
在
File | Settings | Editor | General | Editor Tabs
下有一个Mark modified (*)
的选项,当问及修改后,就会在标签上展示一个特别的图标,表示这个文件还没有被保存。