1、var 变量定义
//"hello".var
String str = "hello";
// 10.var
int i = 10;
// 8.88.var
double v = 8.88;
2、null 判断为空、notnull 和 nn判断非空
// str.null
if (str == null) {
}
// str.notnull
if (str != null) {
}
// str.nn
if (str != null) {
}
3、for 遍历集合或数组
List<String> list=new ArrayList<>();
// list.for
for (String s : list) {
}
// list.fori
for (int i1 = 0; i1 < list.size(); i1++) {
}
// list.forr
for (int i1 = list.size() - 1; i1 >= 0; i1--) {
}
4、Not 取反
boolean status=true;
// status.not
// !status
5、if 判断
// a>10.if
if (a>10) {
}
6、casevar 强转
Object name="Hello World";
// name.castvar
String s = (String) name;
7、return 返回
private String function(){
// "hello".return
return "hello";
}
8、去处无用导包
9、代码回溯(回滚)
10、按文件名搜索文件(连续两下shift)
11、全局搜索 Windows: ctrl+shift+f MacOS: command+shift+f
12、批量替换(Windows: ctrl+R MacOS: command+R)