简体   繁体   中英

How to avoid a new project from being linked to the primary project automatically?

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:

截图新项目。

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM