Is there a way to setup per project index location?

Answered

Hello,

I am working with a large codebase and switching branches would trigger massive indexing and maven import time. Therefore I changed to use git worktree which solves the maven importing problem. However it seems that the indexes by default is at a central location https://intellij-support.jetbrains.com/hc/en-us/articles/206544519-Directories-used-by-the-IDE-to-store-settings-caches-plugins-and-logs

My question is, is there a way to setup per project index location? For example each project would store its index under the project root folder. This way, I believe, when using git worktree, switching between worktree/folder would not cause any re-indexing. 

Thanks a lot.

0
1 comment

Here is the bug for that: https://youtrack.jetbrains.com/issue/IDEA-185201/Share-VCS-Log-index-between-different-worktrees-of-a-single-project

Instead of pointing project's indexes to a separate location (which is not possible, unfortunately), you can use shared indexes for a project: https://www.jetbrains.com/help/idea/shared-indexes.html#project-shared-indexes

0

Please sign in to leave a comment.