Reputation: 7541
I know if I type /** at the top of a method, it will create the bare bones comment for that method, is there a way to do it for a whole class at one time? I tried the code menu, but did not see it.
Upvotes: 2
Views: 4969
Reputation: 311
A slightly quicker way is to set the action Fix doc comment to something like Alt
+Shift
+J
(by default there is no keyboard shortcut). Now if the cursor is anywhere in the method you can use this and it will generate the comments instead of having to be at the exact line.
There may not be a default keystroke setup for this, so you can add it. Go to IntelliJ preferences and type 'fix doc comment' into the search bar.
Upvotes: 3
Reputation: 97178
No, this feature is very intentionally not implemented. JavaDoc comments that do not contain any meaningful information are useless, and auto-generating meaningful comments is impossible.
Upvotes: 3