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?

10 comments
Comment actions Permalink

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).

0
Comment actions Permalink

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?

1
Comment actions Permalink

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.

0
Comment actions Permalink

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!

0
Comment actions Permalink
When I clicked "Open Directory" the folder icon was the PHPStorm icon and was in the new location.

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.

0
Comment actions Permalink

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/

1
Comment actions Permalink

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!

 
0
Comment actions Permalink

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.

0
Comment actions Permalink

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!

0

Please sign in to leave a comment.