简体   繁体   English

Android Studio在记事本中打开xml文件

[英]Android Studio is opening xml files in notepad

I am using Android Studio on windows. 我在Windows上使用Android Studio。

Everything was going fine until I added a new xml file, but accidentally changed the file extension to .xm instead of .xml. 一切都很顺利,直到我添加了一个新的xml文件,但意外地将文件扩展名更改为.xm而不是.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). 现在,所有xml文件都在记事本中打开(我的默认系统编辑器)。

Anyways, how can I restore Android Studio to the point where my xml files would open in Android Studio instead of notepad? 无论如何,我如何将Android Studio恢复到我的xml文件在Android Studio而不是记事本中打开的程度?

Edit : I can see and edit the xml files, but in notepad instead of in the Android IDE itself. 编辑 :我可以看到和编辑xml文件,但是在记事本中而不是在Android IDE中。 This includes, AndroidManifest, Colors, Strings, Layouts, etc. 这包括AndroidManifest,Colors,Strings,Layouts等。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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