How to rename / move a project in Intellij Idea 12?
- Right click on project, then Refactor -> Rename... (shift+F6), set desired name
- Close IntelliJ
- Rename directory in your filesystem to your desired name
- In startup dialog select Open (or File -> Open... in main window)
- 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.
- Close IntelliJ
- Rename the folder in Explorer (Windows) / Finder (OSX)
- Open IntelliJ
- Import Project from Dialog, or File -> Import Project
- Select the folder with the new name
- 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