Project name and directory name

Hi,

I'm a PhpStorm user and i just love it.

I just have one question. Why do the project name has to be the name of the directory?

I have a way to organize my projects where all the files (independent of the project) are always in a folder with the same name. So all the projects have the same name :|

Is there a way to change the project name? Or this can be something change in the future?


thanks and continue the aweeeweeeesome work :D

2
6 comments

Hi Pedro,

Sure it can be done, but manually (no GUI for this):
1) Go to PROJECT_FOLDER/.idea
2) There should be file named .name (if not there, then create it)
3) Open file in any text editor
4) This is plain text file that only has 1 line of text which is the name of the project. Edit the existing text or enter your own. Save changes.
5) File | Reopen -- you will see the changes (if the project you have edited in not currently opened)

http://youtrack.jetbrains.net/issue/WI-4652#comment=27-190876

Corresponding tickets:
http://youtrack.jetbrains.net/issue/WI-4652?projectKey=WI
http://youtrack.jetbrains.net/issue/WI-1432?projectKey=WI

2
Avatar
Permanently deleted user

hi,

thanks for the fast reply :D

i'll give it a try :D

0

Having the same issue (for the same reasons) in phpstorm version 2023.3.3 on Windows, and this solution no longer seems to work; pleas help if you know a way to solve this.

0

Daveb1014 

Still works for me (2023.3.3 on Windows 10)

1. Select the root node in the Project View panel

2. Right click and use "Refactor | Rename"

3. A popup menu will appear with 2 options: “Rename directory” and “Rename project

4. Choose the 2nd one, enter the desired name (it will create that .name file inside the PROJECT_ROOT/.idea folder + a bit more – rename .iml file).

5. Key moment: Restart the IDE – the new project name is now used.

1

Thank you, I didn't know about that - that works and is more convenient!

0

Please sign in to leave a comment.