1.Settings->LiveTemplates 2.点击右侧加号添加模板,添加组或者单个模板 3.比如,添加一个单例 其中: abbrevlation:模板的缩写,写代码时写缩写就会提示出来 description:模板注释 template Text:最终写在编辑器上的代码。 v a l u e s values