问题
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