之前文章丢了,这里就简单写下
可以通过eclipse里的代码模板功能,提高代码规范,提高开发速度
点击window->preferences
然后点击java->editor->templates
右边已经列出了一些模板
这里我们点击New..新建一个
name那里写tc,pattern里写
try{
}catch(Exception ex){
ex.printStackTrace();
}finally{
}
然后在代码里,写下tc,用代码提示后,直接就可以输出上面的一大堆代码