Directory confusion between PHPStorm project, codebase/git, and Claude Code
My codebase and git repo are at `C:/dev/www/kizunadb/public`. But the PHPStorm project directory is the parent `C:/dev/www/kizunadb` (I did that many years ago so that in the project pane I can see some extra files that are in another subdirectory of that parent). Now I've just started using Claude Code. At first I just used it in an independent PowerShell window - I navigated to `C:/dev/www/kizunadb/public`, did an init to build a CLAUDE.md file there, and did some work with it. So far, so good.
But now I've installed the plugin that Anthropic built for JetBrains IDEs, hoping to see a better connection, with in-editor diffs and such. But it launches Claude Code in the project directory, and apparently it needs to stay there. That means it can't find the CLAUDE.md file and isn't looking at my codebase. I don't want to distract Claude with all the other files at that parent level - it only needs to concern itself with the files in `public` directory.
So what should I do? Is there a way to get the Claude Code to launch and live in a subdirectory of the PHPStorm project? If not, I'm willing to give up my extra files visibility and move the PHPStorm project directory to `public`, but I don't even know how to do that without starting over setting up a project. Thoughts?
请先登录再写评论。
Thank you for contacting JetBrains Support. Claude is available in the IDE as part of the built‑in AI Assistant plugin. However, the Claude Code plugin itself is a third‑party integration, and we don’t provide support for that specific plugin. If your question is about issues or behavior in the Claude Code plugin, you’d need to contact the plugin’s author. If you’re using Claude via JetBrains AI Assistant, we’ll be happy to help with that.
Kind regards,
Emin.
I'm not asking for direct support for the plugin itself. I thought this was a community forum, so I was hoping for insights from more experienced users about whether this mix of directory locations will work somehow or I should move my PHPStorm project to the subdirectory where the code is. Also, I hinted in the last sentence of a second question that is directly about PHPStorm: If I decide to move the PHPStorm project to the subdirectory, is there a way to do that while preserving settings like remote deployment connections, github integration, etc.?