I have several django projects and several different files with name utils.py, however pycharm treats them as simple .txt files with no syntax highlighting or any other kind of parsing, how can I fix this?
I have several django projects and several different files with name utils.py , however
Share
Please see
File|Settings(Preferenceson Mac) |Editor| File Types.Look for your file name mapped to the Text type or to the Auto-detect file type by content type.
Remove the incorrect mapping and it will fix the issue.
If you still can’t find the wrong mapping in the IDE settings, locate the
options/filetypes.xmlfile in the Configuration directory. Close the IDE and either edit this file to remove the incorrect mapping or delete this file to reset all the file types to the defaults.