how can i synchroniz bookmarks/breakpoints/source layout structure from serveral places

已回答

hello

Currently working in several places (home / company, etc.),

I use git (sourcetree) to manage my source code.

With git, the source code is synchronized,

but Other environments (bookmarks/breakpoints/source layout structure) are not synchronized.

I want to synchronize the source layout structure/bookmarks/breakpoints,

Is it possible to solve it by using the function of IntelliJ?
Or, what is the file path that stores source layout structure/bookmark/breakpoint information?


Source layout structure: A class at the top left, B class at the top right
                                      C class is lower left, D class is lower right (refer pic)

 

 

0

Hi,

You can use the bundled feature called Settings Sync, or an older plugin called Settings Repository.

Configuration files themselves are located in the IDE config directory. For instance, %APPDATA%\JetBrains\IntelliJIdea2023.2 on Windows.

Breakpoints are stored in the file called workspace.xml located in the project configuration folder (<project root>\.idea). The format is as follows:

<component name="XDebuggerManager">
<breakpoint-manager>
<breakpoints>
<line-breakpoint enabled="true" type="java-line">
<url>file://$PROJECT_DIR$/src/main/pack1/NewNew.java</url>
<line>4</line>
<option name="timeStamp" value="1" />
</line-breakpoint>
<line-breakpoint enabled="true" type="java-line">
<url>file://$PROJECT_DIR$/src/main/Main.java</url>
<line>11</line>
<option name="timeStamp" value="2" />
</line-breakpoint>
...

Information about bookmarks and editor layout is stored in files called "<workspace-id>.xml". They reside inside the \workspace subdirectory, e.g. %APPDATA%\JetBrains\IntelliJIdea2023.2\workspace\1zyVTRwqZRdJ84Ylj4Ztg6A76dX.xml, and correspond to existing projects.

Bookmarks are stored in the following format:

<component name="BookmarksManager">
    <option name="groups">
      <GroupState>
        <option name="bookmarks">
          <BookmarkState>
            <attributes>
              <entry key="url" value="file://$PROJECT_DIR$/src/main/Main.java" />
              <entry key="line" value="19" />
            </attributes>
            <option name="description" value="String a2 = &quot;hello2.xhtml&quot;;" />
            <option name="provider" value="com.intellij.ide.bookmark.providers.LineBookmarkProvider" />
          </BookmarkState>
...

Editor layout component looks like this:

<component name="FileEditorManager">
<splitter split-orientation="horizontal" split-proportion="0.5">
...
0

请先登录再写评论。