How to rename / move a project in Intellij Idea 12?

  1. Right click on project, then Refactor -> Rename... (shift+F6), set desired name
  2. Close IntelliJ
  3. Rename directory in your filesystem to your desired name
  4. In startup dialog select Open (or File -> Open... in main window)
  5. Please select renamed project directory

Enjoy, it work's for me!


It seems that one has to right click on the project (after following the instructions to rename the Project), then choose Refactor -> Move to relocate project to the new location. I didn't find any solution to rename and move a project at once.


  1. Close IntelliJ
  2. Rename the folder in Explorer (Windows) / Finder (OSX)
  3. Open IntelliJ
  4. Import Project from Dialog, or File -> Import Project
  5. Select the folder with the new name
  6. Follow the dialogues

If it is a gradle project, instead of renaming it using Refactor->Rename :

  • set the rootProject.name variable in the settings.gradle file to the new project name.
  • reimport the project. Hit the 'Refresh all Gradle Projects' button in the Gradle Tool Window.

Then follow steps 2 to 5 in @Dawid's answer.

To remove the old project from IntelliJ's list of managed projects:

  • select File->Open Recent->Manage Projects..
  • click the 'x' next to the old project name