file>setting>Live Templates>选择文件类型
webstorm 添加代码模板
原文:https://www.cnblogs.com/kgwei520blog/p/12300245.html