Restore accidently deleted Favorite lists?

Hi,

I accidently deleted several Favorite lists in PhpStorm side panel with Backspace button (which should never delete Favore lists without confirmation btw.) and I'm looking for a way to restore those. Some Favorite lists had dozens of files tied to a signle Tasks and i dont even know which were selected/deleted when i hit Backspace button accidentally.

Edit/Redo menu item does not work for Favorite list operations.

I learned, that in PhpStorm 10.X favorite lists are stored in workspace.xml, but that file is not part of project so there is not local history.

Is there a way to restore deleted favorite lists if there is no other external backup of .idea folder?

 

0
5 comments

As discussed in a support request, favorites can't be restored unfortunately.

0
Avatar
Permanently deleted user

I asked the community before I got your answer hoping someone alredy has found solution for this. Thank you for your reply.

0

That's totally fine, no worries. I've left this comment just in case anyone else was wondering.

0
Avatar
Permanently deleted user

Since you don't have a backup, you an just apply a third-party tool to recover your lost lists, how about using the Bitwar Data Recovery> I have used it before, I think it works well in recovering data, so maybe you can also have a try. Good luck!

0
Avatar
Permanently deleted user

I am using Intellij IDEA (aka IJ), but perhaps the concept is the same for PHPStorm.  My problem was this: I had closed IJ for some reason and when I opened it again, I had problems with my open projects.  So I removed them from the window and did this: File > New > Module from Existing Sources, for each of my 5 projects, to restore them to the window.  However, doing this cleared out my favorites.

Having seen in this post and elsewhere that favorites are stored in the file .idea/workspace.xml, I looked at this file for each of my projects, and I noticed that one of my projects still contained all of the favorites there, in xml format.  So since I am just getting started with favorites, and my list of favorites is not that long, I went ahead and restored them manually.  I would suggest copy/pasting them into a scratch text file before you do this, in case workspace.xml gets overwritten while you restore manually.  There is something similar in Eclipse, a plugin called MyLyn, where you can save favorites, and that plugin will periodically backup its data.  Using it, I even went so far as to manually backup the MyLyn folder in case Eclipse mysteriously lost it (as sometimes it would).  Adding a feature to auto-restore favorites in IJ would be appreciated.

<component name="FavoritesManager">
<favorites_list name="Startup">
<favorite_root url="file://$PROJECT_DIR$/project1/src/main/webapp/file1.jsp" ... />
<favorite_root url="file://$PROJECT_DIR$/project1/src/main/java/com/my/proj/dir/file1.java" ... />
<favorite_root url="file://$PROJECT_DIR$/project1/src/main/java/com/my/proj/dir/file2.java" ... />
<favorite_root url="file://$PROJECT_DIR$/project1/src/main/webapp/file2.jsp" ... />
<favorite_root url="file://$PROJECT_DIR$/project1/src/main/webapp/file3.jsp" ... />
<favorite_root url="file://$PROJECT_DIR$/project1/src/main/java/com/my/proj/dir/file3.java" ... />
</favorites_list>
...



0

Please sign in to leave a comment.