更改磁盘上的文件时,如何防止phpstorm在没有提示的情况下重新加载文件? [英] How to prevent phpstorm to reload file without prompt when file on disk is changed?

查看:30
本文介绍了更改磁盘上的文件时,如何防止phpstorm在没有提示的情况下重新加载文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当一个文件被 phpstorm 打开时,我做了一些没有保存的更改.但与此同时,磁盘上的文件发生了变化.然后 phpstorm 会从磁盘重新加载文件,没有提示.我所有的更改都将丢失.

When a file is open by phpstorm, and I make some changes without save. But at the same time, the file on disk is changed. Then phpstorm will reload the file from disk, without prompt. All my changes will lost.

推荐答案

  1. 设置/首选项 |外观&行为 |系统设置

取消勾选在框架激活时同步文件选项

现在 PhpStorm 会询问您要做什么:您可以选择的选项很少:

Now PhpStorm will ask you what to do: you will have few options to choose from:

  • 加载文件系统更改(从文件加载外部更改)
  • 保留内存更改(忽略外部更改并继续编辑器中的文本)
  • Show Difference(显示差异视图以查看差异并决定需要手动更改的内容)

这篇关于更改磁盘上的文件时,如何防止phpstorm在没有提示的情况下重新加载文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆