[英]How to prevent phpstorm to reload file without prompt when file on disk is changed?
When a file is open by phpstorm, and I make some changes without save.当一个文件被phpstorm打开时,我做了一些更改而不保存。 But at the same time, the file on disk is changed.
但与此同时,磁盘上的文件也发生了变化。 Then phpstorm will reload the file from disk, without prompt.
然后 phpstorm 将从磁盘重新加载文件,没有提示。 All my changes will lost.
我的所有更改都将丢失。
Settings/Preferences | Appearance & Behavior | System Settings
Untick Synchronize files on frame activation
option取消勾选
Synchronize files on frame activation
Now PhpStorm will ask you what to do: you will have few options to choose from:现在 PhpStorm 会问你该怎么做:你将有几个选项可供选择:
@LazyOne's answer pertains to an earlier version of PhpStorm. @LazyOne 的答案与 PhpStorm 的早期版本有关。 In PhpStorm 8.0 there are two checkboxes to provide more granular control over your file synchronization settings:
在 PhpStorm 8.0 中,有两个复选框可以更精细地控制文件同步设置:
Here is what the checkboxes do:以下是复选框的作用:
When there is conflict between PhpStorm and the file that changes on the disk, you will be asked to choose what to do:当 PhpStorm 与磁盘上更改的文件发生冲突时,您将被要求选择要做什么:
More details can be found in the PhpStorm documentation pages for System Settings and the File Cache Conflict pages.更多详细信息可以在系统设置和文件缓存冲突页面的 PhpStorm 文档页面中找到。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.