Everything was good. Today, I opened Android Studio, and every kotlin class code and even layout and value files turned into another format like XML. I don't know what kind of strange reason it is. I have been trying to fix this for 2 days now. even though I opened my files into some other editors(sublime, notepad)but the problem is still there.
I am attaching some screenshots MainActivity.kt.
I also tried these couple of things below
File > Sync project with Gradle files. Result: didn't solve my problem. File > Invalidated cache/restart. Result: didn't solve my problem.
Try this. Right-click on the file (e.g.: MainActivity.kt), then click on "Open In", it will open your explorer window. At this point open that file, which now you see in your explorer window, in a notepad, make a change (e.g.: adding a space where there is already a blank space) and save the file. Now Android Studio should see it correctly or, if not, try to restart Android Studio. If that works, do the same for all suddenly-changed files.