Created a new file without extension -- now I can't associate it with a file type even after renaming. How to fix?
I created a new file but forgot to add the file extension (.scss). This created a generic file type without any syntax highlighting. When I renamed the file with the proper extension, the syntax highlighting still does not return for that file. How do I fix this?
请先登录再写评论。
Looks as if the
<your file name>pattern is assigned to Text file type; please check the registered patterns in Settings | Editor | File types -> Text file type - can you see any similar patterns there? If yes, try removing this patternThis bug has existed a long time, and is still there. It's not difficult to reproduce.
1) Create file without extension.
2) Refactor / rename, add new file with correct extension, IntelliJ doesn't recognize the file type.
Just accidentally found it. Way to correct this is: File > File Properties > Associate with filetype.