创建livetemplate分组:

ctrl shift a    ==》    live templates  ==》  +  ==》 templates group

 

创建livetemplate模版

一个变量    System.out.println($END$);  

两个变量    private static final String $var1$ = $var2$;

带有注释    

 /**
  *$VAR1$
  */
private String $VAR2$;
 $END$

 

 

Ctrl j或者enter    调用livetemplate模版

posted on 2018-04-04 11:32  菜鸟乙  阅读(420)  评论(0编辑  收藏  举报