1.file---->setttings 2.editor--->live template 3.点击右侧的+ 4.设置模板 注意:Abbreviation为代码模板的缩写。 转载于:https://www.cnblogs.com/luckyplj/p/10632186.html