user1855851
user1855851

Reputation: 27

How do I add class javadoc in intellij

I am using Intellij IDEA.

I know how to work "fix doc commnet" It's always using method.

My question~ I would like to add javadoc on Class. How can I do it?

Upvotes: 1

Views: 2861

Answers (2)

Charlie
Charlie

Reputation: 9108

There's nothing special, just place the cursor above the class and type:

/**

and press enter.

Upvotes: 1

Carter Brainerd
Carter Brainerd

Reputation: 197

Before each class you want documentation for, insert /** and press enter. A javadoc block should be generated for you. If you want to go ahead and generate the javadoc, do Tools -> Generate Javadoc and add whatever configuration options you feel necessary.

Upvotes: 1

Related Questions