以下都可以直接快速搜索进行设置
设置project项目编码为utf-8:
File --> Settings --> Editor --> File Encoding --> 设置IDE Encoding/Project Encoding/Default encoding for properties files为utf-8
设置换行符为LF模式:
File --> Keymap --> Main menu --> File --> Line separator
选中LF-Unix and OS X(\n)即可
设置注释作者签名:
File --> Settings --> File and Code Templates
设置make project automaticlly:
file --> build ***--> compiler --> make project automaticlly
打开java序列化类生成serialVersionUID的警告:
默认情况下Intellij IDEA是关闭了继承了java.io.Serializable的类生成serialVersionUID的警告。如果需要ide提示生成serialVersionUID,那么需要做以下设置:
1、setting->Inspections->Serialization issues,将serialzable class without "serialVersionUID"打上勾;
2、将光标放到类名上,按atl+enter键,就会提示生成serialVersionUID了。
IDEA中导入Java Code Style模板:
settings -> Editor -> Code Style -> Java -> Scheme -> Import Scheme
IDEA中注解默认类名方法名等同行,修改成在类名和方法名之上的方法:
settings -> editor -> code style -> java -> wrapping and braces -> class annotations / method annotations...