Note Normalization of learning notes for Android Studio

Source: Internet
Author: User

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

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.