webstorm

Change Project name in WebStorm


I'm trying to change the name of my project in webstorm.

I have looked at this answer on their developer forums, but it does not work for this version (Webstorm 7). Changing the contents of .idea/.name does not change the name displayed in bold in the project folder view. I searched the .idea folder for instances of the old project name and replaced them across various configuration files like modules.xml and PROJECTNAME.iml. There are quite a few. I must have missed one because I couldn't open the project after that :)

My solution was to blow away the .idea/ folder and open the directory again, creating a new project.

Is there a better way to change a project name?


Solution

  • Hit cmd+R (or ctrl+R I guess) or Right click / Refactor / Rename while highlighting the top level dir in the project tree. It shows a popup whether you want to rename the dir or the project name.