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
Please sign in to leave a comment.
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
hi,
thanks for the fast reply :D
i'll give it a try :D
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.
I take it back… just got it to work! Thank you for the solution. I'll update https://intellij-support.jetbrains.com/hc/en-us/community/posts/16769239421202-Show-project-name-and-or-full-path-in-title-bar
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 thePROJECT_ROOT/.idea
folder + a bit more – rename.iml
file).5. Key moment: Restart the IDE – the new project name is now used.
Thank you, I didn't know about that - that works and is more convenient!