Link to home
Start Free TrialLog in
Avatar of Bruce Gust
Bruce GustFlag for United States of America

asked on

How to recover a Project in PhpStorm?

I'm still a pig on rollerskates when it comes to PhpStorm, although I'm a huge fan of what it can do once you get all of your Config Settings in place. 


Here's my dilemma:


I have an existing project called, "iDB" that's got a history of several branches and a working Configuration, as far VCS and Deployment settings. 


I was trying to mimic some of those settings in the context of setting up a new project called, "KTL." 


At one point, thinking I was just "toggling" over to a the "iDB" project, I instead clicked on "New Project" and went on to highlight the "iDB" directory. 


BOOM! (imagine sound of glass breaking and hub caps spinning on the ground)


All of the settings associated with the original "iDB" project are gone, which is understandable, since I just told PhpStorm to initiate a new project called, "iDB."


What can I do to get things back to where they should be?


Bottom line: I've created a New Project using the same name as a previous project and in so doing, it would seem I've wiped out all of the Config Settings and VCS history in the process.


How can I get the original "iDB" project back online within PhpStorm?

ASKER CERTIFIED SOLUTION
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bruce Gust

ASKER

Scott, I didn't even consider that. Let me see how that works. Regardless if that solves the problem, though, thanks for weighing in!

Stand by!

Scott, by right clicking on the left hand navigation pane, you can reveal an option called, "Local History." That's your money!

You can highlight what amounts to whole blocks of activity that have been stamped with a Date and Time.

I went through and found the "webServers.xml" and "sshConfigs.xml" files. By right clicking on those, you can reveal a "revert Selection" and that's how I was able to retrieve the server settings I had in place before hand.

There you have it!

Thanks for your help!
Yes, that local history has saved me many times.

I also do all my development on a Dropbox folder and Dropbox saves a history file each time PHP Storm auto saves. Out of Dropbox, Google Drive and OneDrive, Dropbox works the best. Sometimes I run into issues using an IDE on the others and that goes especially for Visual Studio. It is because of the constant syncing and however Dropbox works, does not interfere.

I use paid dropbox so the version history lasts 180 days without going against your plan's storage limits.