The blogger was transferred from Eclipse to Android studio, and Android studio in general is much better and smarter than eclipse. But for those of us who are accustomed to eclipse, there is more or less a bit of an adaptation. The amount of shortcut keys or something. However, today we are not talking about shortcut keys, we want to say a custom comment template. Developers who have used eclipse should like to add some of our own information to the head of the file or to other places, and of course, this information is custom-edited. So, when we go to Android studio, can we also customize the comment template? The answer is yes. Now let's set it up with this blogger.
1. File---Settings open the Settings panel and follow the instructions in the picture step by step.
2, click "+" number, select the second item will pop up the dialog box, enter a name (can be random), here I enter test, and then click "OK"
3, click "OK", will pop up the following dialog box, and then according to the picture to indicate the operation
4. After clicking the plus sign, the following interface will appear
5, go to this step, the basic is almost finished. Here are some tips, first look at the blogger's comments.
6, according to the above pictures of the guidelines, I believe we should have been very clear. Next, let's look at how to edit variables
7. Edit variables
8, after editing a good method, click the "OK" button, the next is to witness the miracle of the moment, in the class input you just entered in the Abberviation template name. You'll see the custom annotations.
9, the following is the Bo Master
Android Studio Custom Comment Template