文件类型问题
最后修改时间:2023 年 9 月 1 日有时,您可能会发现源代码文件(例如.py)开始看起来像纯文本文件:

通常,这种情况仅发生在多个文件中的一个文件上。这是由于文件类型设置的意外更改造成的。
要检查文件类型状态,请按打开 IDE 设置并选择编辑器 | 文件类型并检查由文件内容自动检测的文本和文件类型:CtrlAlt0S
文本
根据文件内容自动检测文件类型


如果您在任何这些文件类型中发现您的文件名,请单击将其删除,然后单击“确定”。
另外,请确保*.py文件模式已在Python文件类型下注册:

之后,您的 Python 文件类型应该被正确识别:

感谢您的反馈意见!
此页面是否有帮助?