2

I want to create @CreationDate and @ModifiedDate JavaDoc tags to mention dates in JavaDocs. For example

/**
 * It's a custom exception specially designed for some critical events. 
 * This is related to the server's response.
 * @author Khan
 * @version 1.0
 * @creationDate 1 Jan 2016
 */

I found a way to do it in Eclipse here...

How to create custom javadoc tags?

But unable to find it in Android Studio. How can I add custom tags?

Community
  • 1
  • 1
User
  • 4,023
  • 4
  • 37
  • 63

2 Answers2

3

Navigate to this section:

File > Settings > Editor > Inspections > Javadoc issues > "Declaration has javadoc problems"

From there, you'll be able to add custom tags. See screenshot below with your example implemented:

Screenshot example

smont
  • 1,348
  • 1
  • 12
  • 20
  • Thanks for your response. I've already added tags from here, but after generating JavaDoc, these tags are not displayed. – User Apr 28 '16 at 06:14
  • After I did this the "wrong tag" warnings showing in the source-code editor went away. Thanks. – dazed Feb 22 '18 at 10:03
3

To generate JavaDoc with custom tag, Go to Tools > Generate Javadoc, Following screen will be displayed...

enter image description here

Now just add

-tag creationDate:a:"Creation Date:"

in Other command line arguments text box.

User
  • 4,023
  • 4
  • 37
  • 63