Schultz9999
Schultz9999

Reputation: 8926

One of files in my project is not treated as Python code file by PyCharm

It has a different icon and is shown with Text and Data tabs in the bottom. It seems somehow related to its name: test_events.py. Only if I name it this way, PyCharm exhibits this behavior. Using text_eventz.py is OK. How do I fix it?

Upvotes: 3

Views: 98

Answers (1)

yole
yole

Reputation: 97168

Please check Settings | Editor | File Types | Text | Registered patterns. This file name may have gotten mapped to the "Plain text" file type; if you remove the erroneous mapping, everything will start working correctly.

(This is a bug in PyCharm, but unfortunately we don't know the exact steps to reproduce it.)

Upvotes: 2

Related Questions