Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change project title in IntelliJ IDEA?

I want to change project title(demo) in IntelliJ IDEA but I can't find a way to change it, the directory has renamed but the title doesn't change

in File > Open Recent show demo name!

enter image description here

like image 596
MostafaMashayekhi Avatar asked Oct 03 '18 12:10

MostafaMashayekhi


People also ask

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.

How do I rename a Maven project in IntelliJ?

Go to src/main/java/yourprojectname folder, right click and select Refactor->Rename.


2 Answers

You should change demo to your project name in following path: .idea/.name. Then restart the IDE.

enter image description here

like image 96
aminography Avatar answered Oct 19 '22 22:10

aminography


If it is Gradle or Maven project you should change the name in Gradle or Maven configuration. E.g. in settings.gradle:

rootProject.name = 'someName'

or in Maven root pom.xml:

...
<artifactId>someName</artifactId>
...

If project does not use any build systems rename it in File | Project Structure | Project | Project name: field:

enter image description here

like image 20
Andrey Avatar answered Oct 19 '22 23:10

Andrey