Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 444
Leon Avatar asked Jul 08 '11 07:07

Leon


1 Answers

  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)
like image 155
LazyOne Avatar answered Oct 25 '22 01:10

LazyOne