Question

Why does the default IntelliJ default class javadoc comment use non-standard syntax?

Why does the default IntelliJ default class javadoc comment use non-standard syntax? Instead of creating a line with "User: jstauffer" it could create a line with "@author jstauffer". The other lines that it creates (Date and Time) probably don't have javadoc syntax to use but why not use the javadoc syntax when available?

For reference here is an example:

/**
 * Created by IntelliJ IDEA.
 * User: jstauffer
 * Date: Nov 13, 2007
 * Time: 11:15:10 AM
 * To change this template use File | Settings | File Templates.
 */
 45  24386  45
1 Jan 1970

Solution

 54

I'm not sure why Idea doesn't use the @author tag by default.

But you can change this behavior by going to File -> Settings -> File Templates and editing the File Header entry in the Includes tab.

As of IDEA 14 it's: File -> Settings -> Editor -> File and Code Templates -> Includes -> File Header

2008-09-15

Solution

 6

In AndroidStuido 1.0.2 on Mac

Go in Preferences then on left span File and Code Templates After selecting file and code templates on right hand side select includes tab select file Header and change your file header.

2015-01-11