包括文件中的完全限定名称

问题描述:

当我点击快捷键 Alt + Shift + J 时,eclipse会添加一些Java文档,其中

When I click short-cut key Alt+Shift+J, eclipse adds some java documentation with

@author xyz
@since date

在上面。


  • 那么当我们点击那个快捷键时,我们可以在eclipse中定义这个文档模板吗?


转到窗口 - > 参考文献 - > Java - > 代码样式 - > 代码模板。选择评论 - > types 。编辑并添加以下行: $ {package_name}。$ {type_name} 。在代码模板中有内容帮助的方式。

Go to Window -> prefereneces -> Java -> Code Style -> Code Templates. Select comments -> types. Edit and add the following line there: ${package_name}.${type_name}. In the code templates there is content assist by the way.