How to switch "current project" or access settings for other opened projects (attach)

已回答

I get a feeling this should be a very simple click somewhere but for the life of me I can't seem to figure it out. 

I have multiple projects open in PyCharm by choosing "attach" when opening the project. 

Now, I need to change the "settings" (in this case, the python interpreter) for one of them. If I go to File > Settings, I see a tab on the left that shows "Project: <name of project>" , where "<name of project>" was the first project that I opened in pycharm. However, I need to adjust the settings for "<some other attached project>" and I can not find how to access these settings. I tried making the focus of the current file one of the files from the project that I want to change the settings of, to no effect. 

How can I change the settings for another attached project?

1

Not all of the settings of the attached project can be changed. For example, you can make changes to its interpreter in File | Settings | Project | Project Interpreter

Feel free to submit a ticket to https://youtrack.jetbrains.com/issues

0
Avatar
Permanently deleted user

Hi Sergey, 

Yes, I see that I can change settings for the interpreter in the path you have specified. The issue is that it is for the wrong project. I want to change the interpreter, for the other project that is open. There is only one 'project settings' side tab visible currently, and it is just for one of the projects. Is there a workaround to select it for another project?

0

Hmmm, that's odd.

There should be an option for each project:

Don't you have it?

1
Avatar
Permanently deleted user

Hi Sergey, 

Thank you. I had a mental block that there would be items for "untitled" under the hierarchically divided menu where "untitled10" was above. Perhaps the project title could be removed form this menu to avoid this type of confusion? Or maybe it's just me :P . 

Anyway, this answers the question, thank you very much for the help! 

1

Hi there,

I have a similar problem request.

I have several remote projects open as attached projects (because I don't want to have multiple windows), and I want to access the GitHub functionalities of an attached project. However, I can only access the GitHub tools of the first project I opened.

Wouldn't it be a sensible feature that I can rightclick on any currently open project regardless of its state ('attached' or other), mark it as 'active' or 'current' or something, and then access all the things I need, project interpreter, VCS tools, whatever?

Thanks for considering this. Or telling me how this is already possible.

1

Johannes Wasmer

Could you please elaborate a bit more on:
>However, I can only access the GitHub tools of the first project I opened.
What actions exactly are you trying to perform? 

0

Ruslan Kuleshov

Sure.

Current project > Git > History > Log of repo of current project
Expected:
Any attached project > Git > History > Log of repo of attached project
Encountered:
Any attached project > No Git option available.
All projects (current, attached) are git repositories.

Or is that in fact possible (within one PyCharm window) and I am doing something wrong?
Thanks.

0

Johannes Wasmer

Could you please check whether those attached projects are listed under Preferences | Version Control? If not, please add them there and check whether Git options are available

0

Ruslan Kuleshov

Thank your for the tip, I didn't know about that.
I've added the attached projects to Settings > Version Control > Directories (under 'Edit VSC Directory Mapping', all as 'directory', not 'project', including the current project).
In the list there, the added directories (of the attached project) appear in red, while the directory of the current project appears in white.
'Git' option is still not available for the attached project.

Upon restart, I get the error:
7:35 PM Invalid VCS root mappings
The following directories are registered as VCS roots, but they are not: # list of attached project directories
Ah, I guess that happens because they are remote projects, and the .git folder has not been downloaded or something like that?

Because the current project is also a remote project, they are all remote projects. So in principle, it should work somehow, right.
Thanks.

0

I had this same problem and had to close all the files I had open and reopen the file I was working on as the main project. I'm glad I'm not the only one with this issue because it seems like it should be intuitive to change the settings for a specific file within a project. There is some distinction between projects and files that is unclear and makes it so you can't just change the settings easily.

0

请先登录再写评论。