在Eclipse中自动生成函数注释 [英] Autogenerate function comments in Eclipse

查看:452
本文介绍了在Eclipse中自动生成函数注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Eclipse中自动生成基于xml的函数头注释(@param等)。在Visual Studio中有一个等效的///快捷方式。

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

推荐答案

在方法定义之前的行中,键入 / ** 并按Enter键。

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

在IDE中,键入 / ** 在方法之前,然后按Enter键。
Eclipse将自动生成Javadoc标签,结束 * /

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)
{
   ...
}

这篇关于在Eclipse中自动生成函数注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆