including fully qualified name in documentation

南笙酒味 提交于 2019-12-25 08:59:12

问题


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

@author xyz
@since date

on top of class.

  • So, where can we define this documentation template in eclipse when we click that short-cut key?
  • And how can I add additional details to include fully qualified name in class documentation in eclipse?

回答1:


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.



来源:https://stackoverflow.com/questions/9748493/including-fully-qualified-name-in-documentation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!