Why does the standard standard standard syntax for IntelliJ use the javadoc class by default?

Why is IntelliJ standard default syntax using the default javadoc comment? Instead of creating a line with "User: jstauffer", she can create a line with "@author jstauffer". The other lines it creates (date and time) probably don't have javadoc syntax, but why not use javadoc syntax when it is 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.
  * / 
+43
intellij-idea javadoc
Sep 15 '08 at 15:07
source share
5 answers

I'm not sure why Idea does not 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 on the Includes tab.

According to IDEA 14, this is: File -> Settings -> Editor -> File and Code Templates -> Includes -> File Header

+48
Sep 15 '08 at 15:25
source share

On AndroidStuido 1.0.2 on Mac

Go to Settings then in the left pane File and Code Templates After selecting the file and code templates on the right side, select the includes tab . Header title and change the file header.

+6
Jan 11 '15 at 18:49
source share

The default value is readable, may be used, but does not conform or does not offer any coding standard.

I think the reason IntelliJ does not use Javadoc tags by default is because it allows you to avoid possible interference with any coding / javadoc standards that may exist in development stores. It should be obvious to the user if the default value should be changed to something more appropriate.

Where I work, using author tags is not recommended, for various reasons.

+4
Oct 03 '08 at 0:53
source share

Since this is the default file template, you should change it to your organization standard, or your tastes.

My best guess.

+3
May 18 '09 at 19:42
source share

It is likely that the header fragment you are showing is older than javadoc and was just borrowed from some standard coding document, possibly written for C ++.

+1
May 18, '09 at 19:12
source share



All Articles