使用快捷键(ctrl+alt+s)找到:从idea的菜单File->Settings->Editor->Live Templates
先添加Template Group,然后添加Live template
比如,初始化日志:
1 private final Logger logger = LoggerFactory.getLogger($className$.class);