This article focuses on how functions in Android Studio add comments to make annotations as easy as Eclipse
The steps are as follows:
First, file->setting->editor->live Templates
Second, click on the far right +, create a template Group
Third, fill in the group name, any fill in
Select the group you just created to create the live Template
Five, fill in the abbreviation, convenient input and memory can input doc, that is, a shortcut to the comment, enter the doc plus carriage return above the function body
Six, enter the comment template, template text note templates, you can refer to the Eclipse template, my template is as follows
Seven, set the doc shortcut to the effective location: when the declaration takes effect, that is, you enter the function name above the doc plus carriage return
Eight, the key point, this step is wrong, date and author will not take effect
Assign a value of four variables desc, user, date, time to the definition, and click Edit variables, as set by the variable
Nine, see the moment of effect, enter doc on the function name and enter
002. Android Studio Configuration Note template