File type issues
Sometimes, you may find your source code file, for example, .py, starts to look like a plain text file:
![Python file looking like a plain text file Python file looking like a plain text file](https://resources.jetbrains.com.cn/help/img/idea/2024.1/py_file_type_issues1.png)
Usually, this happens only to a single file out of many. This is caused by accidental change in the file type settings.
To check the file type status, press Ctrl+Alt+S to open settings and select Editor | File Types and check Text and File type auto-detected by file content:
![Python file type settings Python file type settings](https://resources.jetbrains.com.cn/help/img/idea/2024.1/py_file_type_issues2.png)
![Python file type settings Python file type settings](https://resources.jetbrains.com.cn/help/img/idea/2024.1/py_file_type_issues3.png)
If you find your filename in any of these file types, click to remove it and click OK.
Also, ensure that the *.py file pattern is registered under the Python file type:
![Python file type association Python file type association](https://resources.jetbrains.com.cn/help/img/idea/2024.1/py_file_type_issues4.png)
After this, your Python file type should be recognized correctly:
![Python file type is recognized Python file type is recognized](https://resources.jetbrains.com.cn/help/img/idea/2024.1/py_file_type_issues5.png)
Last modified: 11 February 2024