leon leon - 2 years ago 212
PHP Question

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.
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.

Answer Source
  1. Settings/Preferences | Appearance & Behavior | System Settings

  2. Untick Synchronize files on frame activation option

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

  • Load File System Changes (load external changes from file)
  • Keep Memory Changes (ignore external changes and continue with text in editor)
  • Show Difference (show difference view to see the difference and decide what needs to be changed manually)
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download