leon leon - 7 months ago 42
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
  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)
Comments