exporting Bookmarks possible?

I would like to use bookmarks that I set at home to the Phpstorm at work. Is it possible?

3 comments
Comment actions Permalink

Unfortunately, no: https://youtrack.jetbrains.com/issue/IDEA-111619
Bookmarks are kept in the .idea/workspace.xml file, you can try copying it to the project at work.

1
Comment actions Permalink

@Eugene Morozov  Fortunately yes !

And I must admit that I'm very disappointed in the fact that there is no IntelliJ team support for this topic,
or some guidance to help people, as this happens pretty much after all new versions of IntelliJ and it's update,
and as a consequence, it impacts a developer's work, at least for us who work on really big projects.

So I've decided, to make this short tutorial how to restore back your bookmarks for Windows 10 users :

As of version 2020.1, IntelliJ operates under hidden Windows user AppData folder :
e.g. C:\Users\<windows.user.name>\AppData\Roaming\JetBrains\IntelliJIdea<version>\workspace

Even more, under C:\Users\<windows.user.name>\AppData\Roaming\JetBrains there are previous versions, (along with backup folders !)
and under appropriate version, in folder "workspace" there are all modifications, in the form of <funny_ssh_like_fileName>.xml
(e.g. 1lFTpsTT6pUo3tksBtYpwaD5qZ2.xml)

So, in my case, I've :
1. opened ~\AppData\Roaming\JetBrains\IntelliJIdea2020.3\workspace
2. sort files to descend based on modified flag
3. opened the newest one, and found that there is just one new bookmark, without previous ones !
4. so, I opened next recent xml, found <component name="BookmarkManager"> and copied everything in between,
into the current IntelliJ workspace file


1
Comment actions Permalink

Thanks for sharing the tutorial!

I just wanted to add that you may also get a workspace ID from the project's ".idea/workspace.xml" file. It is being stored under the "ProjectID" node, like:

<component name="ProjectId" id="1iyAAbIwvCQ9QvsmSD1nvGgYVgE"/>

The file will be named as "1iyAAbIwvCQ9QvsmSD1nvGgYVgE.xml" correspondingly.

0

Please sign in to leave a comment.