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.
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
Settings/Preferences | Appearance & Behavior | System Settings
Untick
Synchronize files on frame activation
optionNow PhpStorm will ask you what to do: you will have few options to choose from:
@LazyOne's answer pertains to an earlier version of PhpStorm. In PhpStorm 8.0 there are two checkboxes to provide more granular control over your file synchronization settings:
Here is what the checkboxes do:
When there is conflict between PhpStorm and the file that changes on the disk, you will be asked to choose what to do:
More details can be found in the PhpStorm documentation pages for System Settings and the File Cache Conflict pages.