Pycharm - MacBook - models.py无法识别 [英] Pycharm - MacBook - models.py is not recognized
本文介绍了Pycharm - MacBook - models.py无法识别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
查看此图片
我觉得缺少一些设置配置,因为当我尝试创建我的models.py时,会发生这种情况。代码不被识别,文件不像py文件...
I think is missing some setup config, because when I try to create my models.py happens this. The code is not recognized and the file is not like py files...
任何关于我做错什么的想法?
Any idea about what I'm doing wrong?
注意:不是文件类型问题,因为另一个文件代码被识别,文件图标是python。
Note: Is not a file type problem, because the another files code is recognized and the file icon is of python.
推荐答案
注意:不是文件类型问题,因为另一个文件代码被识别,文件图标是python。
Note: Is not a file type problem, because the another files code is recognized and the file icon is of python.
您错了 - 这是文件类型问题。
- <强>首选项|文件类型
- 文本文件在上面的列表中
- 查找并删除下表中不需要的图案 - 我希望这是
models.py
或非常相似的
- Preferences | File Types
- Text Files in upper list
- Find and remove unwanted pattern in lower list -- I expect this to be
models.py
or quite similar
/ simialr SO问题:
A bit more / simialr SO questions:
- https://stackoverflow.com/a/21281563/783119
- https://stackoverflow.com/a/11687851/783119
这篇关于Pycharm - MacBook - models.py无法识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文