eclipse 自动添加注释
在eclipse进行设置:
?
window->preferences->java->code style->code templates右侧,打开comment->types,点击edit
?
/** * 类说明 * @author limx * @date 2011-6-23 */public class Test {/** * 方法说明 * @param x * @param y * @return */public int add(int x,int y){return x+y;}}? 注:方法的注释自动生成方式为:输入/** 然后按下enter即可。
?