2017/04/23

Invalid file type in pycharm

About

Pycharm is an IDE for me to code python in Window. However, there is a problem when I am adding a file q2.py. File type of that file is always TEXT instead of PYTHON. Here is a solution for fixing file type error.

Solution

  • Go Menu bar > File > Settings > Editor > File Types > Text
  • In the Recognized File Types
    • Select Text
  • In the Registered Pattern Box
    • Remove q2.py
  • Click SAVE and OK
  • Done

Reference

沒有留言:

張貼留言