用法:在编辑框中输入少量字符就可以得到常用的代码块(要在能用的地方用,否则提示),可以结合快捷键Ctrl+Alt+T减少代码编写
快捷键:Ctrl+J,已定义的自动代码;Ctrl+Alt+J,用动态模板环绕,同Ctrl+J内容不太一样,输入后Tab,或者Enter都会更改为代码块
psvm:main sout:System.out.println(); soutm:System.out.println("Classname.MethodName"); soutp:System.out.println("parameterNames = [" + values + "]"); soutv:System.out.println("valueName = " + value); souf:System.out.printf(""); serr:System.err.println(); Sfmt:String.format("", ); fori:for(int i =0;i<;i++){} foreach:for ( : ) {} I:for (Object o : ) {} ifn:if(xxx==null){} inn:if(xxx!=null){} inst:if (xxx instanceof Object) {Object XX = (Object) xxx; } itar:for (int i = 0; i < array.length; i++) { xxx= array[i];} ritar:for (int i = array.length - 1; i >= 0; i--) {xxx= array[i];} itco:for (Iterator iterator = collection.iterator();iterator.hasNext(); ) {Object next = iterator.next();} iter:for (Object o : ) { } itit:while (iterator.hasNext()) {Object next = iterator.next();} itli:for (int i = 0; i < list.size(); i++) {Object o = list.get(i);} itve:for (int i = 0; i < vector.size(); i++) {Object elementAt = vector.elementAt(i);} lazy:if (userDO == null) {userDO = new UserDO();} toar:.toArray(new Object[.size()]) thr:throw new todo:标记 fixme:类似于TODO,记录一个标记
标签:iterator,Ctrl,Object,IDEA,System,println,简写,快速,out From: https://www.cnblogs.com/windok/p/17554206.html