project name

i like the option to open a directory, since i have many projects which are all in different directories, but i just started using Pycharm ... the problem is, if i have a bunch of projects which are in a common path naming like:

A/B/C/html
D/E/F/html

then both projects show up as "html" ... isn't there a way to name a project so that name is used to identify which project it is for?
14 comments
You can edit the .idea/.name file to change the name of the project used by PyCharm.
0
You shouldn't rename the *.iml file. The name of that file is used in the project workspace settings.
0
I changed the name in the .name file and the PC title bar reflects the name change after reloading the project but the name in the project tab is still incorrect. How can I change the name "tools" in the project tab list:

Development [tools] (/Users/eduvall/ALMA/Development)
0
This comes from the name of the .iml file. To change this, you need to rename the .iml and update the reference to it in .idea/modules.xml.
0
Hi Dmitry,

This fixed my Tools project but the Utilities project is pointing to the old name of the tools project.

How can I remove the Tools project from the Utilities project?
0
There were four projects appearing in the Utilities project tab. "Remove from project" option was available for one of the projects but only a Delete option is available for the other two I need to remove.
0
I'm trying to change my project name too.
I read this thread and it's not encouraging ... maybe i'll just leave my project name unchanged.

But I am surprised that there is not GUI command to change the project name....

More generally, if i have an existing code base and i want to use pycharm, then it seems like i use the "open directory" command and that sets the project name to be my directory name.  I can't use the "new project" command because that is only used for brand new projects with no code – is this correct?  (I'm a newbie to pycharm).
0
This is correct. A GUI command to rename a project is planned for a future release of PyCharm.
0
i was trying a workaround of creating the empty project somewhere else and then importing the directory with the existing code base, but it seems that pycharm can't import directories (can only import files).  the ability to import directories is another feature to put on the wish list of pycharm.
0
There is no "import" feature in PyCharm, and we don't see any need to provide one. You can use "Open directory" on any directory where your source code is located, or use any file manager to copy files to your project directory.
0
ok, so the pycharm model is a separate project for every directory root.
if i have multiple directories, i will have multiple projects.
thus, project names are very important.

project names can be partially changed by editing .idea/.name

when the new project name change GUI command comes out, I'm hoping it will not be confused (and error out) if the .name file is different from the root directory name.  it should bring the .name hack back into a consistent state and then do the name change from the consistent state.
0
when i delete a project, the project files (the project directory and the .idea directory) are still in the file system.
moreover, the project is still listed in: menu, file, reopen

so, how can i cleanly remove a project?
0
so, how can i cleanly remove a project?

From IDE "recent projects" list: when IDE has no project open, it will show "welcome/homepage" screen. In "Recent Projects" section – when you hover your mouse cursor over such project, just click on "x" button.

From file system: by manually deleting unnecessary folders/files.

i was trying a workaround of creating the empty project somewhere else and then importing the directory with the existing code base, but it seems that pycharm can't import directories (can only import files).

You can try "Settings | Project Structure":
  • delete current Content Root
  • add new Content Root with existing code base
0

Please sign in to leave a comment.