IntelliJ IDEA: How to rename a project (in “Recent Projects” list)?

前端 未结 9 1111
名媛妹妹
名媛妹妹 2020-12-25 09:25

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

相关标签:
9条回答
  • 2020-12-25 09:44
    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!

    0 讨论(0)
  • 2020-12-25 09:45

    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.

    0 讨论(0)
  • 2020-12-25 09:47

    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.

    0 讨论(0)
  • 2020-12-25 09:59

    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
    0 讨论(0)
  • 2020-12-25 10:00

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

    enter image description here

    0 讨论(0)
  • 2020-12-25 10:01

    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 {} \;

    0 讨论(0)
提交回复
热议问题