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?

5 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?

0
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

Please sign in to leave a comment.