Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you stop PyCharm from automatically closing script files when you click out of the program?

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).

Any help is much appreciated!

like image 215
AButkov Avatar asked Jan 19 '18 10:01

AButkov


People also ask

How do I keep PyCharm running?

Right-click the Run tool window and select the Pause Output toggle in the context menu. Note that only the output will be suspended. The program execution will be continued. To resume the program output, deselect Pause Output in the context menu.

Does PyCharm auto save?

PyCharm automatically saves changes that you make in your files. Saving is triggered by various events, such as compiling, running, debugging, performing version control operations, closing a file or a project, or quitting the IDE.

How do I enable running scripts in PyCharm?

Running a scriptChoose Run | Run from the main menu or press Alt+Shift+F10 , and then select the desired run/debug configuration. This way, you can run any available run/debug configuration.

How do I check PyCharm history?

Right-click anywhere in the editor and choose Local History | Show History from the context menu. In the dialog that opens, the left-hand pane shows a list of all saved revisions of the current file with timestamps.


1 Answers

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.

like image 80
r.ook Avatar answered Sep 23 '22 23:09

r.ook