有两种情况 如图所示 情况一: 打开设置settings 找到FileTypes 从里面找到Text 把里面xml删除即可,如果没有就是第二种情况。 情况二: 找到你创建的xml文件,把它删除了就行了。