Pycharm utils.py not getting syntax highlight

2019-01-05 03:06发布

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?

1条回答
欢心
2楼-- · 2019-01-05 03:24

Please see File | Settings (Preferences on Mac) | Editor | File Types, select the Text files and remove utils.py from there. Most likely it was added by accident from the file right click context menu.

查看更多
登录 后发表回答