3

In PyCharm, I'd like that every new project will not be linked to the primary project automatically when I create it. Is there a way to do it properly?

When a new project is created and attached to the current window, it is automatically linked to the primary project:

Screenshot new project.

john_johnk
  • 51
  • 8
  • 1
    I tried several times to find a way of customizing this behavior in the IDE when opening several projects in the same window but it simply cannot be done. There is no such feature in PyCharm and the only chance would be requesting the developers to implement it by posting a feature request at https://youtrack.jetbrains.com/issues. – bad_coder Apr 28 '21 at 04:13
  • 1
    Hello, yes thanks but since there is no solution right now I won't "accept" this answer. I upvoted your answer and thanks for information. Best, – john_johnk Mar 27 '22 at 13:30

1 Answers1

2

Is there a way to do it properly?

The simple answer is: No, this can't be done currently.

If you select "Open projects in the same window" and "Attach", see Open multiple projects. PyCharm's default behavior is linking the new projects as dependencies of the primary project.

There is no setting in the IDE to change this default behavior, if you want to remove the dependencies you'll have to do it manually in File > Project > Project Dependencies > Project depends on these projects.



You can customize the "Project opening policy" at Appearance and Behavior > System Settings > Project but that only changes the dialogue, not the automatic setting of the dependency if opening in the same window.

bad_coder
  • 11,289
  • 20
  • 44
  • 72