How do I rename a RubyMine project

I created a project from a directory a while ago. The project has a new name, and I'd like everything to reflect that. I  renamed the directory, and have reopened the project, but it retains the old name in square brackets. Looking at the .idea directory there's a .name file, but loads of existing files reference the old name.

I'd prefer not to have to throw away the project - there are lots of settings that have taken time to get right.

can i rename it somehow?

RubyMin 5.4.1 on OSX 10.8.3

1 comment


there is not simple way to do this.  The following works for me:
1. rename .idea/<oldname>.iml to .idea/<new name>.iml
2. modify module's names in .idea/modules.xml
3. find and replace old module name in .idea/workspace.xml (but only where the name is used as module name, something like <module name="xxx">)

Of course, if you decide to try this - make a backup copy of .idea directory to restore it ;)

Regards, Oleg.


Please sign in to leave a comment.