In Eclipse, alt + shift + J
on a new type, will generate javadoc with author & date.
e.g
/**
* @author eric
* @date Apr 3, 2015 8:49:31 PM
*/
In IDEA, I tried, but it just generate an empty Javadoc without author or date.
e.g
/**
*
*/
The question is:
- In IDEA, how to generate a javadoc same as Eclipse does, with the author & date part?
- Is it possible to generate it automatically on type creation?
- What is the default shortcut for that?
@Update - summary
According to comment and answer, following javadoc is added to file template:
/**
* @author ${USER}
* @date ${DATE} ${TIME}
*/
for file type: Class
, Interface
, Enum
, AnnotationType
.
The javadoc will be added on type creation automatically.
But still seems there is no shortcut to add it by hand for existing types.