idea 实用小功能
1、简单自动导包(有多个包则需要选择) 2、代码自动补全
2.1、if
boolean flag = false;
flag.if
if (flag) {
}
flag.else
if (!flag) {
}
2.2、for\while
fori
for (int i = 0; i < ; i++) {
}
flag.while
while (flag) {
}
2.3、String
new String().var
String string = new String();
2.4、return
public int test(){
10.return
return 10;
}
2.5、sout
"Hello World".sout
System.out.println("Hello World");
2.6、try
int mun=0/10.try
try {
int num= 0/10;
} catch (Exception e) {
e.printStackTrace();
}
2.7、list
List<Integer> list = Arrays.asList(1,2,3,4,5,6,7,8,9,);
list.for
for (Integer integer : list) {
}
list.fori
for (int i = 0; i < list.size(); i++) {
}
list.forr
for (int i = list.size() - 1; i >= 0; i--) {
}
|