Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
722 views
in Technique[技术] by (71.8m points)

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
  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)

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...