I accidentally created a file named SomeClass.txt,...
# intellij
h
I accidentally created a file named SomeClass.txt, deleted and created it as SomeClass.kt, however the IDE offers no syntax highlighting or code completion. I’ve invalidated my cache and restarted but still the same result, how do I fix this?
c
maybe its called SomeClass.kt.txt?
h
It’s not. I recreated the file. On Finder its SomeClass.kt
s
Somewhere in settings there are file specific overrides for what a file is opened as. You may have gotten added an exception that opens it as textfile
Maybe Editor -> File Types
h
Yup that fixed it. Thank you 🙂