当您退出程序时,是否可以阻止PyCharm自动关闭脚本文件? [英] Can you stop PyCharm from automatically closing script files when you click out of the program?

查看:95
本文介绍了当您退出程序时,是否可以阻止PyCharm自动关闭脚本文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用PyCharm(社区版)时遇到问题,当我在程序中打开一个.py文件时,我可以像往常一样高兴地读写该文件,但是当我单击PyCharm(以查看例如我的电子邮件),然后再单击它以继续执行我的代码,文件将自动关闭并且项目树结构崩溃(因此我每次都必须重新打开它).

I am having a problem with PyCharm (Community Edition) in that, when I open a .py file in the program, I can happily read and write in the file as usual, however when I click out of PyCharm (to look my emails for example) and then click back into it to carry on with my code, the file automatically closes and the project tree structure collapses (so I have to re-open it every time).

到目前为止,我已经尝试将制表符限制更改为一个较大的数字,但这似乎无济于事(它不应该相关,因为这种情况仅在打​​开一个文件时发生).

So far I have tried changing the tab limit to a high number, but this doesn't seem to help (and it shouldn't be related, since this happens when I open just one file).

非常感谢您的帮助!

推荐答案

我之前遇到过同样的问题.我假设您已通过UNC路径(例如\\foo\bar\)连接到网络共享文件夹?

I had the same issue before. I'm assuming you're connected to a network shared folder via UNC path (e.g. \\foo\bar\)?

如果是这样,当前不支持.您需要映射您的网络文件夹并给它一个驱动器号.然后使用映射的驱动器加载您的项目,它将像超级按钮一样工作.

If so, it is not currently supported. You'll need to map your network folder and give it a Drive letter. Then load up your project using the mapped drive, and it'll work like a charm.

如果不是这种情况,请向我们提供更多信息.

If that's not the scenario though, please give us more information.

这篇关于当您退出程序时,是否可以阻止PyCharm自动关闭脚本文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆