有两种情况

如图所示
IDEA新建xml文件显示内容为普通文本

情况一:

IDEA新建xml文件显示内容为普通文本
打开设置settings
找到FileTypes
从里面找到Text
IDEA新建xml文件显示内容为普通文本
把里面xml删除即可,如果没有就是第二种情况。

情况二:

IDEA新建xml文件显示内容为普通文本
找到你创建的xml文件,把它删除了就行了。

相关文章: