Answer the question
In order to leave comments, you need to log in
How to restore a file in PhpStorm?
I use PhpStorm 8.0.3
Windows 7 The computer
freezes with a blue screen, when one php file is rebooted in PhpStorm, it lost all its contents (and it took several days to work there!)
File weight did not seem to be affected 14KB
Opened the file in a regular notepad and PhpStorm was empty
There Notepad ++ writes a long string and there NUL NUL NUL these are the characters
What can be done at all? why did PhpStorm corrupt the file?
Answer the question
In order to leave comments, you need to log in
VCS -> Local History -> Show History
Use Git (or equivalent) and there will be no such problems.
why did PhpStorm corrupt the file?Not PhpStorm, but OS.
I had exactly the same problem a couple of days ago, but with another product from JetBrains - PyCharm.
I restored the file using R-Studio.
the same thing, only what happened in phpstorm 7, the local history and one file with the class were lost. tin.
who knows where phpstorm stores local history?
Restoring a branch in another product from JetBrains - Webstorm. I am using Git.
Prehistory.
I worked on one task on a separate branch, after its completion I merged into the dev branch for verification ... time passed, the branches with tasks accumulated, I decided to clean it up, deleted this one with the feature, as usual, after that, they checked the feature and asked to pour it to a stage branch, but there is no branch, so here's how option A:
git log list
of commits number one commit
go to the branch where you want to transfer them
git cherry-pick <commit number>
option B:
Right-click > Git > Show History
log tab... through the search you find your saves on the branch
<commit name> origin & <name of your killed branch>
click on the name > chekout and.... voila the branch is alive again
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question