---
title: "利用Eclipse的模板功能快速编码"
author: "libo_591"
date: "2012-03-18T22:52:33Z"
tags: []
categories: ["编程语言"]
slug: "eclipse"
draft: false
lastmod: "2012-03-16T21:55:57Z"
id: 1455686
url: "https://libo-591.iteye.com/blog/1455686"
---

之前文章丢了，这里就简单写下

可以通过eclipse里的代码模板功能，提高代码规范，提高开发速度

点击window-&gt;preferences

然后点击java-&gt;editor-&gt;templates

右边已经列出了一些模板

这里我们点击New..新建一个

name那里写tc,pattern里写

try{

}catch(Exception ex){

ex.printStackTrace();

}finally{

}

然后在代码里，写下tc,用代码提示后，直接就可以输出上面的一大堆代码