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. 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文件,但意外地将文件扩展名更改为.xm而不是.xml。然后我点击了我收到的提示,却没有意识到它会影响我的整个项目。现在,所有的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. This includes, AndroidManifest, Colors, Strings, Layouts, etc.
编辑:我可以看到和编辑xml文件,但是在记事本中而不是在Android IDE中。这包括AndroidManifest,Colors,Strings,Layouts等。
1 个解决方案
#1
3
Go to Setting -> Editor -> File Types -> Files Opened In Associated Applications and removed *.xml then add it to Setting -> Editor -> File Types -> XML
转到设置 - >编辑器 - >文件类型 - >在关联的应用程序中打开的文件并删除* .xml然后将其添加到设置 - >编辑器 - >文件类型 - > XML
#1
3
Go to Setting -> Editor -> File Types -> Files Opened In Associated Applications and removed *.xml then add it to Setting -> Editor -> File Types -> XML
转到设置 - >编辑器 - >文件类型 - >在关联的应用程序中打开的文件并删除* .xml然后将其添加到设置 - >编辑器 - >文件类型 - > XML