Alt+Ins 除了自动设置get,set以外,当然就是重写接口或者父类的方法。
选择Override Method.

自动出pubic static void main() 打出前面几个字母即可psvm
自动出System.out.println() 输入sout+tab键
Ctrl+Alt+t 重写控制流程(先选中这段代码)

Ctrl+Alt+v 把一段代码自动赋值给一个变量或者对象(先选中这段代码)
Ctrl+Alt+B 查找一个接口的所有实现类
Ctrl+Alt+H查找一个方法在哪些地方被调用了。
给要序列化的类加序列化版本号
File->Settings->Editor->Inspections->Java->Serilzation issues->Serializable class without 'serialVersionUID'

在后面打上勾
在要序列化的类上用光标点上类名,按Alt+Entry,点第一项即可自动生成序列化版本号


给Scala的val变量自动添加类型
Settings->Editor->Code Type->Scala->Type Annotations->Local的Value改成Add
网友评论