96

Is there an easy way in IDEA 12 to rename a project in the "Recent Projects" list?

ThinkingStiff
  • 64,767
  • 30
  • 146
  • 239
Matthias
  • 9,817
  • 14
  • 66
  • 125

10 Answers10

147

Found the solution.
You can rename the Project under "File > Project Structure > Project > Project Name".

enter image description here

Matthias
  • 9,817
  • 14
  • 66
  • 125
17

Simply edit the file that contains the name: .idea/.name.

fhucho
  • 34,062
  • 40
  • 136
  • 186
13

If your project is file based, you cannot rename the project from within IDEA.

Convert your project to a directory based format, and then you will have the option to rename it under "File > Project Structure > Project > Project Name".

This was just done on 14 ultimate.

Nathan
  • 937
  • 9
  • 15
10

Change your project using refactor. (first change your project folder name).

  1. Select Project Name.
  2. Select Refactor->Rename
  3. Input new Project.

Everything should be ok now.

sjngm
  • 12,423
  • 14
  • 84
  • 114
双义邓
  • 101
  • 1
  • 3
8

To rename project in IDEA 13 CE

  1. Close IDEA project
  2. Find project files *.ipr, *.iml, *.iws
  3. Rename all these files as you want to be named project e.g. New Project.ipr(iml,iws)
  4. Open project file in IDEA
Ernest Poletaev
  • 558
  • 5
  • 15
6

I've tried the answer of @Matthias, @Ernest and @fhucho, but did not work (with 12.1.6CE).

What made it work was:

  1. change the name of the project folder
  2. find and rename the .ipr file, as proposed by @Ernest
    • Note: I did not have any .iml nor .iws file
  3. change the name in .idea/.name
  4. replace all occurrences for the initial project name by the new one in all .xml files

    • find them using:

    find . -name "*.xml" -exec grep -Hn $InitProjectName {} \;

Juh_
  • 14,628
  • 8
  • 59
  • 92
3
  1. Rename all old*.iml to new*.iml
  2. Open this project in Sublime Text, use Ctrl+Shift+F to replace all "old" to "new"

Then reopen this project and build it!

BaiJiFeiLong
  • 3,716
  • 1
  • 30
  • 28
3

I found the solution to change “Recent Projects” list!

  1. browse 'setting.gradle' in your project

  2. change rootProject.name='new_project_name'

However, this way only changes the project name.

Try the answer of @Matthias together!

Signal
  • 31
  • 2
2

intellij project structured in folder

I completed the renaming as below.

The attached image is structured in project folder.

Must make changes in the xml into a new project name.

  1. close IDEA intellij (14.0.2)

  2. change intellij project name (folder)

    e.g) old_project_name -> new_project_name

  3. change .idea in folder

We have only changed the

1) artifacts in folder -> xml

2) runConfigurations in folder -> xml

3) modules.xml

4) workspace.xml

5) [your_project_name].iml

(Depending on your project structure, your folder may not contain xml)

  1. restart IDEA intellij

  2. File -> Import Module...[your intellij project]

I hope this helps you :)

devJackie
  • 119
  • 1
  • 5
0

I have tried all above solutions but the solution that worked for me is, renaming the folder manually after closing the IDE. Once it is renamed, it is all good to show the new project name.

Dhamo
  • 1,171
  • 3
  • 19
  • 41