0

When I create a new test class with CTRL + SHIFT + T in IntelliJ (using 13.1.3), the new class has no class JavaDoc.

I do have a template for new Class, and for new Interface, but those do not get used when I create a new test class as described above.

Also, when I go to the new test class's declaration and insert JavaDoc as per /** + ENTER, then my templates aren't used either.

This works in Eclipse, and I am looking to have the same level of convenience in IntelliJ.

Any way to make this work?

Vidura Mudalige
  • 810
  • 2
  • 18
  • 31

2 Answers2

0

You can configure templates, that IntelliJ IDEA uses to generate things. It's available in File | Settings | File Templates

You can learn more from official documentation here: http://www.jetbrains.com/idea/webhelp/file-templates.html

Alex
  • 7,460
  • 2
  • 40
  • 51
0

Intellij: Change JUnit Test Class template shows how to edit the template for Test classes.

I didn't see it because it's in the "Code" tab, while the template for new classes is in the "templates" tab. The separation seems arbitrary, but whatever.

I still don't know how to add JavaDoc as per template to an existing class that is completely missing JavaDoc.

Community
  • 1
  • 1