优化导包配置
配置路径:File-> settings -> Editor -> General -> Auto Import
Add unambiguous imports on the fly:自动导包
Optimize imports on th fly (for current project):自动删除无用包

代码提示取消大小写
配置路径:File-> settings -> Editor -> General -> Code Completion
取消勾选后,代码提示不区分大小写。如输入小写s,也会提示String。

创建代码模板
自定义live template,快速生成代码串。
配置路径:File-> settings -> Editor -> Live Templates。
如下配置了java文件中输入lgr即可生成logger的代码串。


单行注释紧跟代码头
取消勾选后,单行注释的// 会紧跟代码头。不过这个主要看个人习惯了。
配置路径:File-> settings -> Editor -> CodeStyle -> Java。

效果如下:

创建类自动生成作者信息
创建文件时候,自动带上类描述信息,不需要手动添加。
配置路径:File-> settings -> Editor -> File and Code Templates。

创建文件后:

自动刷新snapshot依赖
snapshot依赖一般为开发阶段的依赖包,可以设置自动刷新,可以避免一定程度上因为开发阶段频繁推包导致需要手动刷新。
配置路径:File-> settings -> Build, Execution, Deployment -> Build Tools -> maven。
