Losing bookmarks

Answered

I have lost my "bookmarks" a few times.

  1. Is there a workaround (Situations to avoid)
  2. Can I export/import them?
  3. Where are they stored?

Question also goes for breakpoints and "favorites"

 

Thanks

Olav

 

2
8 comments

Hello! Favorites, breakpoints and bookmarks are stored in your project folder in .idea/workspace.xml. They are not intended to be shared with other team members, but you can try to add this file to git.

0
Avatar
Permanently deleted user

I found it thanks. Though it is in cmake/.idea - not under CLionProjects.

0

My bookmarks have been dissapeard, this is 3rd time since Idea 2019.2.
Whats going on here ???
Please Idea team, resolve this problem asap !

4

Dobri7 please report the issue to the IntelliJ IDEA tracker: https://youtrack.jetbrains.com/issues/IDEA

0

Anna, your link leads to a 404. In any case, I just lost all my bookmarks and breakpoints.  It supersucks.

2

I corrected the link, thanks

0

I don't believe they are still stored in .idea folder inside project directory.
i can't find them there workspace.xml. does not list any bookmarks.
 

Reinstalled computer without backing up clion settings and bookmarks are gone.

0

I believe you are correct, Ivan. 

I'm in a dev container (but the .idea folder is in the workspace I'm working in). 

1) Create a bookmark with the comment “blahblah25”

2) Grep in the container: grep -rn "blahblah25" /path/to/.idea | cut -d: -f1-2 → No results. 

 

3) However, bookmarks do seem to be referenced in some form: 

 

$grep -rn "blahblah25" /.jbdevcontainer/ | cut -d: -f1-2

/.jbdevcontainer/config/JetBrains/CLion2025.1/workspace/2ybfbLi7koxcLNy1pSlt0knikco.xml:11

$ cat /.jbdevcontainer/ | cut -d: -f1-2
/.jbdevcontainer/config/JetBrains/CLion2025.1/workspace/2ybfbLi7koxcLNy1pSlt0knikco.xml


…
<GroupState>
       <option name="bookmarks">
         <BookmarkState>
           <attributes>
             <entry key="url" value="file://$PROJECT_DIR$/FILE_WITH_BOOKMARK" />
             <entry key="line" value="LINE_WITH_THE_BOOKMARK" />
           </attributes>
           <option name="description" value="blahblah25" />
           <option name="provider" value="com.intellij.ide.bookmark.providers.LineBookmarkProvider" />
           <option name="type" value="DIGIT_3" />
         </BookmarkState>
…


Could one of the Jetbrains team provide context on what this file is / how to persist it in a docker container please? The name suggests it's designed to be a temp file. 

0

Please sign in to leave a comment.