I accidentally created a file named SomeClass.txt,...
# intellij
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?
maybe its called SomeClass.kt.txt?
It’s not. I recreated the file. On Finder its SomeClass.kt
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
Yup that fixed it. Thank you 🙂