In PyCharm, I can refactor the project by right clicking on it in the menu on the left. However, this does not change the name in the blue bar right at the top of the PyCharm window, where it also shows the project path on your machine. Why not?
Renaming ProjectsRight-click the root folder of your project and select Refactor | Rename from the context menu or press Shift+F6 . In the dialog that opens, choose the rename strategy. If the project name is the same as the name of its root folder, select Rename directory.
Open the Project Structure settings. In the Projects pane of the Project Structure page, click the project you want to configure content roots for. In the dialog that opens, locate the desired directory and click OK.
Today I have reached the same problem.
I tried this answer, but I have not found this <projectdir>/.idea/.name
.
So I renamed the <projectdir>/.idea/<projectName>.iml
, but I realized that this is not enough.
For fully working solution I had to:
<projectdir>/.idea/<projectName>.iml
file<projectName>.iml
and virtualenv directory (in my case: ) inside each xml file on folder .idea
(In my case was files name: modules.xml
and workspace.xml
-> that is mine home directory for all projects)Change name of module (projectName) inside xml file (in my case: workspace.xml
) on each that line contain:
<favorites_list name="<projectName>" />
<option name="myItemId" value="<projectName>" />
<module name="<projectName>" />
<ignored path="<projectName>.iws" />
-> but I am not 100% sure about this one.
For Info: I am working on pyCharm Community Edition 2016.2 and Ubuntu 16.04 LTS.
If someone knows easier way, please feel free to inform me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With