Android Studio Custom Comment Template

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.