You can also update an existing Javadoc comment to account for the changes in the declaration using the Fix doc comment action: Place the caret at the tag, press Alt+Enter, and select an action. If a method signature has been changed, IntelliJ IDEA highlights the tag that doesn't match the method signature and suggests a quick-fix. Place the caret at the declaration in the editor, press Alt+Enter, and select Add Javadoc from the list.įor method comments, the new comment stub contains the required tags ( tags for each method parameter, or Kotlin, the and other tags are not generated because the recommended style requires incorporating the description of parameters and return values directly into the documentation comment.įor more information about documenting Kotlin code, refer to Kotlin documentation. You can disable automatic insertion of Javadoc comments: in the Settings dialog Control+Alt+S, go to Editor | General | Smart Keys, and clear the Insert documentation comment stub checkbox.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |