- Open IDE Settings, and expand the Editor node.
- In the Smart Keys page, select the check box Insert documentation comment stub.
- Place the caret before the declaration.
- Type the opening block comment /**, and press EnterEnter.
- Add meaningful description of parameters and return values.
Tip
- IntelliJ IDEA checks syntax in the documentation comments and treats it according to the Error settings.
- If the entered text contains HTML tags, the closing tag will be automatically added after typing >, provided that this behavior is enabled in the editor settings.
- When typing in a documentation comment, the caret automatically moves to an expected position. For example:

- In a comment block, select the desired empty line and type @ character.
- Press Ctrl+SpaceControl Space, or just wait for Code Completion to display the suggestion list:

- Select a tag from the suggestion list. For example, you can specify the parameters type, or return type.
- If a certain tag has several values, press Ctrl+SpaceControl Space after the tag, and select
the desired value from the suggestion list. For example, IntelliJ IDEA suggests to select the desired parameter name.


