使用idea创建xml文件

1.打开设置弹窗 方法:点击file--otherSetting--Default Setting(快捷键Ctrl+Alt+s)。
2.在搜索框输入template在左侧菜单栏找到并选中File And Code Templates。
3.右侧选中file标签。
4.点击绿色加号+添加模板。
5.name无所谓,extension写xml,然后添加上内容。
6.最后把enable live Template(激活模板)勾选上。
7.大功告成。
8.附图:
http://s1/mw690/001XNbkjzy7ojCLLdLO40&690
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">