列模式:
shift+alt+insert进入列选择模式,可选择一列或者多列
shift+alt+insert退出列选择模式
大小写转换:
Ctrl + Shift + U
循环:
iter 增强版for循环
List<String> list = new ArrayList<>(); for (int i : array) { }
itar 生成array for代码块
int array [] = new int [10]; for (int i = 0; i < array.length; i++) { }
itco 生成Collection迭代
List<String> list = new ArrayList<>(); for (Iterator<String> iterator = list.iterator(); iterator.hasNext(); ) { String next = iterator.next(); }
iten 生成enumeration遍历
itit 生成iterator 迭代
itli 生成List的遍历
ittok 生成String token遍历
itve 生成Vector数组迭代
itaws 生成Axis2 web service调用:
try { MyServiceStub stub = new MyServiceStub(); stub.sayHelloWorldFrom(); } catch (Exception ex) { ex.printStackTrace(); }
itws 生成 Axis web service调用:
try { MyServiceLocator locator = new MyServiceLocator(); Activator service = locator.get(); // If authorization is required //((MyService_Soap_BindingStub)service).setUsername("user3"); //((MyService_Soap_BindingStub)service).setPassword("pass3"); // invoke business method service.businessMethod(); } catch (javax.xml.rpc.ServiceException ex) { ex.printStackTrace(); } catch (java.rmi.RemoteException ex) { ex.printStackTrace(); }