Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to rename project in RubyMine

I'm running Rubymine 5.4.x on Windows 7 (but that shouldn't really matter for this question) and I have managed to delete projects and seemingly rename them before, but I am stuck this time.

In the past, this is what I've done:

  1. rename all instances of your old project name in all the files in the .idea folder in your project directory.
  2. rename all instances of your old project name in all the files in the RubyMine config folder and subfolders (on windows, for RM 5.x - %USERPROFILE%\.RubyMine50\config)
  3. rename all instances of your old project name in all the files in the RubyMine system folder and subfolders (on windows, for RM 5.x - %USERPROFILE%\.RubyMine50\config)
  4. rename all FILES that contain your old project name to the new project name, a few examples - rename:
    • your actual project directory which would probably have the same name as the project to the new project name
    • the .idea/<your_project_name>.iml file

In Summary:

  • By deleting or modifying these files/folders I have managed to delete or rename the projects that appear in my "project list" in that startup screen/Create Project/Open Project Modal for RubyMine, and in the ReOpen Projects menu.

  • However, this time around I can't get the name of this particular project rename... that is it appears with the correct path in these lists, but the incorrect name.

  • Furthermore, the incorrect name appears in my Project ToolWindow once the IDE is launch, although directly to the right of it in parenthesis is the correct path.

Any thoughts? tia

like image 341
Flak DiNenno Avatar asked Sep 01 '13 15:09

Flak DiNenno


People also ask

How do I rename a file in Rubymine?

Use the Alt+Shift+R shortcut to rename the file when it's highlighted in the project view panel. Generally, actions like rename is part of the Refactoring (because you also need to rename the usages of it) so you will also find it in the Refactor menu on top.

Can I rename an IntelliJ project?

In the Project tool window, click Project and select Packages from the list. IntelliJ IDEA lists all the packages in your project. Right-click the package you want to rename and from the context menu, select Refactor | Rename ( Shift+F6 ).

How do you rename a project in Java?

To rename the project, simply right-click the project and select "Refactor/Rename...". Fill in the new name and click OK.


2 Answers

To rename a project edit .idea/.name file manually.

There is a feature request to add Rename Project action to a File menu, please vote.

like image 138
CrazyCoder Avatar answered Sep 20 '22 08:09

CrazyCoder


Updated answer done on RubyMine 6.3.3 when I wanted to rename the project directory:

  1. Close RubyMine
  2. Rename project directory to desired name
  3. Delete the .idea folder
  4. Reopen renamed project directory in RubyMine

I found this to be easier than combining the steps listed on the question and the accepted answer

like image 23
WiredIn Avatar answered Sep 22 '22 08:09

WiredIn