我正在使用 PyCharm 做一些 Django 项目,我在左边的项目 View 中打开了它们。我想将我目前正在处理的项目移到列表底部以避免混淆。 PyCharm 默认不允许我这样做。在我执行此操作之前是否需要调整某些设置?看看这个截图。我想要做的是单击并拖动 'Django_pro' 到列表底部,然后伸展树(Splay Tree)。这能实现吗?
最佳答案
据我所知,文件导航器面板中的显示顺序(它们中的任何一个 - Project
、Project Files
等)不是用户可以任意选择的。
为避免混淆,将您的 django 项目实际拆分为单独的 PyCharm 项目可能是更好的主意 - 您现在拥有的只是一个单个 PyCharm 项目其中包含分布在多个目录中的文件。通过防止项目之间的潜在冲突,拆分还将为您省去麻烦。
有了单独的 PyCharm 项目,就不会出现这样的困惑,因为每个项目都在自己的窗口中打开(即使选择重新使用 Pycharm 窗口,现有项目在新项目打开时也会关闭)。来自 Opening, Reopening and Closing Projects文档部分:
PyCharm allows opening several projects simultaneously in different windows. By default, each time you open a project while another one is opened, PyCharm prompts you to choose whether to open the project in the same window or in a new window. If necessary, you can change this behavior using controls on the System Settings page.
In the Project Opening section of this page, you can choose one of the following options:
- Open project in a new window to open a new PyCharm window each time a new project is opened.
- Open project in the same window to stay in the same PyCharm window.
- Confirm window to open project in to keep the default behavior and display a dialog box to choose how to open each new project.
您可能想要浏览整个 Creating and Managing Projects章节和/或 Creating and managing Django project教程。
关于python - 如何在 PyCharm 项目 View 中移动项目文件夹?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39236006/