(eclipse) 解决xml文件没有提示的问题 (按ALT+/没反应)

    今天自己写一个SSM框架的权限控制demo,发现在写xml文件时没有提示的功能,之前还好好的,查了一下资料,发现是xml默认打开方式不对。

解决方法:

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


选中*.xml后在Associated editors下面这个框里选中XML Editor 点击右边的Default按钮选为默认方式,这样,在创建xml文件后默认可以有提示了(XML Editor方式)。

也可以对单个xml进行设置


右键xml文件,open with下选中XML Editor方式,即可有提示功能了。

猜你喜欢

转载自blog.csdn.net/qq_41737716/article/details/80178675