首页 » PHP » 正文

phpstorm自动保存功能

下图是关不了phpstorm自动保存的,

1

官网有一个介绍:
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.

IDEA 有一些触发器,某些操作(action)会触发自动保存。
有时候会有一些误操作,这些误操作导致会在源码输入一些字符,往往就被自动保存下来。
•在重构代码的时候是比较纠结的,写的过程中一般不保存。觉得写得不好,就把所有编辑器 tab 关掉,重新来写。结果在 IDEA 里面,关掉 tab 会触发自动保存。

看样只能用 local history,就可以回到之前的状态