W
W
winser2015-12-02 12:13:07
PHP
winser, 2015-12-02 12:13:07

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

5 answer(s)
V
Vitaly Khomenko, 2015-12-02
@iiifx

VCS -> Local History -> Show History
Use Git (or equivalent) and there will be no such problems.

O
OnYourLips, 2015-12-02
@OnYourLips

why did PhpStorm corrupt the file?
Not PhpStorm, but OS.
The blue screen cannot cause a storm.
You have already been told about local history.
And learn how to use git, then the losses will be for several hours instead of days and weeks.

A
Anton, 2015-12-02
@Gambetto

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.

P
pingo, 2015-12-06
@pingo

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?

Z
Zimmerman2020, 2018-10-31
@Zimmerman2020

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 question

Ask a Question

731 491 924 answers to any question