Move Existing Project to New Folder
I've searched the forum and online help but did not see an answer.
I created a New Project from Existings Files. The original folder created and populated from FTP for the project was D:\WebStormProjects\Playground
It's under git source control and has a .idea folder and related files that were created during the new project seteup process.
It's working fine as is but I need to move it to a new folder D:\dev\playground
How can I move a project from the original folder to a new folder without having to start a new project from scratch?
Please sign in to leave a comment.
Hi there,
Using Explorer move project folder to a new location (with PhpStorm closed or at least that project closed in PhpStorm) and then use "File | Open Directory" in PhpStorm to open it from new location. You may need to adjust some project settings after that (those that involve paths, e.g. Deployment, VCS).
Assuming I move the files and Open As Directory as you suggest. When I close and start the IDE again will it show up as a project? Or do I need to manually adjust settings within the .idea folder to the new location?
No.
I'm not using VCS so cannot advise on this part, but everything else worked fine for me in the past as all paths are stored relative to project root. Although, check "Settings | Directories" before and after moving -- I think I saw the ticket that folders marked as Excluded etc are stored with full paths.
In any case -- just make backup of .idea subfolder before moving project.
It actually worked without issue, so far at least.
When I clicked "Open Directory" the folder icon was the PHPStorm icon and was in the new location.
In the Settings - Directories list it shows the new location as well.
Thanks!
Such icon will be shown for any folder that has .idea subfolder in it (even if it's empty). It just a hint (very convenient hint BTW) to tell you that there may be a project in this folder.
I have same issue. When moving a project folder to new location, two things get broken as I'm aware of 01 git repo path, 02 .idea setting. The reason is because Jetbrains store full path in the config file in .idea/
Ok, I found the answer. You need to do next steps:
1) Open your project in IDE -> Choose "File" -> "Export" -> "Project to Zip file" -> choose directory to save
2) Unzip zip-file to directory, to which you want to move your project - profit!
Open, close and move projects
https://www.jetbrains.com/help/idea/open-close-and-move-projects.html#change-location
Still buggy: after moving it lost favorites, root vcs and files in Project View missing.
1340068, unfortunately, I can't reproduce the issue consistently. Could you please share an archive of your
.idea
folder via https://uploads.services.jetbrains.com/? Thank you!Is there currently a simple way to move a project on the file system and continue working on it without having to do imports or other crazy procedures? I tried a few procedures to no avail.
Matan, you can just close the project in PhpStorm and move the project folder in a file manager.
After that, you can re-open the project, and optionally remove the broken entry for the old project path on the Welcome screen.