IDEA常用快捷键

1、itit

        while (iterator.hasNext()) {
            Object next =  iterator.next();
            
        }

 

2、Ctrl+J

提示可快捷生成代码的列表

3、fori

        for (int i = 0; i < ; i++) {
            
        }

 

4、I

        for (Object o :) {
            
        }

 

5、ifn

        if (args == null) {
            
        }

 

6、inn

        if (args != null) {
            
        }

 

7、inst

        if (args instanceof Object) {
            Object o = (Object) args;
            
        }

 

8、itco

        for (Iterator iterator = collection.iterator(); iterator.hasNext(); ) {
            Object next =  iterator.next();
            
        }

 

9、itar

        for (int i = 0; i < args.length; i++) {
            String arg = args[i];
            
        }

 

10、itli

        for (int i = 0; i < list.size(); i++) {
            Object o =  list.get(i);
            
        }

 

11、lst

        args[args.length - 1]

 

12、mn

         = Math.min(, );

 

13、mx

         = Math.max(, );

 

14、ritar

        for (int i = args.length - 1; i >= 0; i--) {
            String arg = args[i];
            
        }            

 

15、serr

        System.err.println();

 

16、Sfmt

        String.format("", );

 

17、souf

        System.out.printf("");

 

18、sout

        System.out.println();

 

19、soutm

        System.out.println("Demo01.main");

 

20、soutp

        System.out.println("args = " + Arrays.deepToString(args));

 

21、soutv

        System.out.println("args = " + args);

 

22、thr

        throw new 

 

23、toar

        .toArray(new Object[.size()])

 

24、iter

        for (String arg : args) {
            
        }

 

posted @ 2021-12-22 14:57  牛牛的自留地  阅读(116)  评论(0编辑  收藏  举报