Today, let's talk about how to configure class comments and method comment templates in Android Studio to make your project more normalized, first to look at the effect:
To create a new class annotation effect:
Give the comment effect to a method:
Here's how to implement the following steps:
File->settings->file and Code Templates->includes file Header
Once configured, remember to press Apply so that when you create a new Java class, the contents of the file Header are automatically generated and the comments defined in your comment template are automatically added.
To add a shortcut key for a Javadoc document output comment:
Search Comment---Keymap, Settings, File----Find the Fix doc Comment--double-click, select Add Keyboard Shortcut, press Next to your shortcut key--OK
If you want to modify the shortcut, right-click, you can pop up the dialog box, a few options to explain the dialog box:
How to use:
Put the mouse on your function, and then press the shortcut you set on the fix doc comment to pop up the comment.
It's not easy, just try it.
Note Normalization of learning notes for Android Studio