Eclipse设定文件的默认打开方式

之前在eclipse中安装了androrid开发环境所有的xml打开发现下面只剩一下选择,原来maven的依赖查询都没有了。

解决方法:

1.最终解决方法

设置默认打开方式为MAVEN POM Editor。

菜单:Window -> Preferences -> General -> Editors -> File Associations 

File types: *.xml

Associated editors:MAVEN POM Editor -> Default

2.打开文件右击->open with ->MAVEN POM Editor

好了,你再双击*.xml文件试试,是不是ok了。

原文地址:https://www.cnblogs.com/iusmile/p/2758395.html