Autogenerate function comments in Eclipse

后端 未结 4 1783
既然无缘
既然无缘 2020-12-29 06:04

How to autogenerate xml based function header comments (@param etc) in Eclipse. Is there an equivalent of \"///\" shortcut in Visual Studio.

4条回答
  •  鱼传尺愫
    2020-12-29 06:18

    In the line just before the method definition, type /** and hit enter.

    In the IDE, type /** just before the method and hit enter. Eclipse will autogenerate the Javadoc tags and the end */

    type /** here and his enter, eclipse will generate the javadoc tags and the end */
    public void setName(String name)
    {
       ...
    }
    

提交回复
热议问题