Change file type in PyCharm

前端 未结 4 807
一个人的身影
一个人的身影 2020-12-03 00:53

I created a text file, and renamed it into testTreeGen.py.

\"enter

The problem

4条回答
  •  爱一瞬间的悲伤
    2020-12-03 01:35

    Go in the Settings -->Editor --> File Types --> Text --> Registered Patterns (lower list box in the dialog) --> Remove the file name that has been added (Should be the file name you accidentally created as text file) by clicking the "-" right hand side. Apply and you should have this speeding ticket off your record.

    1. Select File Types
    2. Scroll down until you see [text]
    3. select [text]
    4. scroll down to the bottom, you should see your file that Pycharm thinks is text
    5. hit the [-] option to remove the text association and hit OK
    6. When you go back to Project view you should see the file associated with the extension you gave it.

提交回复
热议问题