1. PostfixCompletion
User.new
new User();
new User().var
User user = new User();
new User().return
return new User();
new User().arg
(new User())
private User user;
new User().field
new Object().castvar
User user = (User) new Object();
User user = new User();
user.null
user.nn
Boolean flag = false;
flag.if
flag.while
String[] strings = new String[5];
strings.fori
strings.forr
String[] strings = new String[5];
strings.for
String[] strings = new String[5].try
2. 带注释的定义代码块
可以选中代码块后 Ctrl + Alt + T 选择region …
3. 快捷删除包裹代码
选中要保留的代码 Ctrl + Shift + Del
|