Incorrect file association for single file in IntelliJ / Android Studio

I accidentally created a file without the .xml extension. I clicked on another dialog box right after matching this file with another type ...? After renaming the file to include the .xml file, it still has no syntax highlighting. I tried to close Android Studio, delete the file and recreate, etc. It is still displayed as a regular file. If I create a file with another .xml file, it links perfectly.

Any ideas?

+55
xml intellij-idea android-studio
Jan 24 '14 at 15:55
source share
2 answers

Look at Preferences > Editor > File Types in the Text files section, probably the name of your file, delete it.

Preferences> Editor> File Types




If you cannot find it there, the next option is to search for IntelliJ caches for the file name, for example, find . -name "*.xml" | xargs grep "Whoopsies" find . -name "*.xml" | xargs grep "Whoopsies" find . -name "*.xml" | xargs grep "Whoopsies" . IntelliJ must remember this value somehow ...




The cache location depends on your operating system and version of IntelliJ ( source ).

Window

Windows Vista 7, 8:

 \ Users \ [USER ACCOUNT NAME] \. [PRODUCT] [VERSION]

Windows XP:

 [SYSTEM DRIVE] \ Documents and Settings \ [USER ACCOUNT NAME] \. [PRODUCT] [VERSION]

* NIX

 ~ /. [PRODUCT] [VERSION]

Mac OS X

Configuration:

 ~ / Library / Preferences / [PRODUCT] [VERSION]

Caches:

 ~ / Library / Caches / [PRODUCT] [VERSION]

Plugins

 ~ / Library / Application Support / [PRODUCT] [VERSION]

Logs:

 ~ / Library / Logs / [PRODUCT] [VERSION]
+125
Jan 24 '14 at 18:32
source share

I have the same problem. I found the file in the following file type:

enter image description here

+6
Aug 29 '16 at 9:59 on
source share



All Articles