1.file–settings 2.Editor–File and code Templates----点击+ 3.把代码粘贴进去,修改名字和文件类型,点击ok 4.下次在我们要使用这个模板时可以新建出来了