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.
Settings/Preferences | Appearance & Behavior | System Settings
Synchronize files on frame activation option
Now PhpStorm will ask you what to do: you will have few options to choose from: