Eclipse usage and tips 5: generate instructions 2

Source: Internet
Author: User

In the previous article, we introduced a method for generating javadoc annotations that can be extracted by JDK. Next we will add a method to generate this annotation ,:

Step 1: move the cursor next to the statement to which you want to add comments. Shortcut: Shift + ALT + J

This method of adding annotations also applies to the data Scope of the class. Personally, the shortcut key takes effect in the following way: if you cannot add comments to the current row, it is automatically converted to the previous layer. For example, if you execute a shortcut key on the previous row of the method, generates class comments.

Next let's talk about how to generate javadoc. As mentioned above, this method of adding comments can be collected using the built-in JDK tool. To check the BINLOG of JDK, javadoc.exe exists. Therefore, you can use the command line to generate javadoc. In the powerful ide of Eclipse, you can easily generate javadoc ,:

Step 1: file --> Export

Step 2: Select javadoc

Step 3: configure the javadoc location on the computer and select the storage location.

 

 

In the previous article, eclipse usage and technique 4: generate instructions 1:
Http://blog.csdn.net/ts1122/article/details/8786143

In the next article, eclipse usage and Tips 6: automatically generate get and set methods:

Http://blog.csdn.net/ts1122/article/details/8852555

Related Article

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.