简体   繁体   中英

Android Studio is opening xml files in notepad

I am using Android Studio on windows.

Everything was going fine until I added a new xml file, but accidentally changed the file extension to .xm instead of .xml. Then I clicked on a prompt that I received without realizing that it would affect my whole project. Now, all the xml files are opening in notepad (my default System editor).

Anyways, how can I restore Android Studio to the point where my xml files would open in Android Studio instead of notepad?

Edit : I can see and edit the xml files, but in notepad instead of in the Android IDE itself. This includes, AndroidManifest, Colors, Strings, Layouts, etc.

转到设置 - >编辑器 - >文件类型 - >在关联的应用程序中打开的文件并删除* .xml然后将其添加到设置 - >编辑器 - >文件类型 - > XML

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM