简体   繁体   中英

Opening .py files in PyCharm Editor

Currently, I have PyCharm recognizing the .py extension and all .py files have the PyCharm icon. However, when I double click on a .py file, the project opens up (if it's in a project) and on the left hand side I can see everything in my project folder, but the center of PyCharm is telling me "No files are open." I can open, write, and run scratch files though.

How do I get the python script in the editor?

if you press ALT-1 you will see on the left, files of your current open project. If you click on file with .py and it does not open in the Editor window, it may mean your default layout got somehow changed. Press Shift-F12 to restore to default layout, and click on a .py file again. Other thing to try is to delete .idea folder in the project directory and restart Pycharm.

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