MyEclipse automatically generate comments, edit default comment templates

Source: Internet
Author: User

Automatic Generation Method Comments:

After writing the method, after entering/** above the method, pressing ENTER will automatically generate the method comment.

/** * * @param UID * @return */public map<string, string> Getsysuserid (String uid) {}

To edit the default comment template:

1. Class Note: Code---New Java files, code-Preferences, Java-----Windows---------Templates ; editing, you can edit the class annotations yourself.

/** * @author YANGCJ * @version * 1.0 ${date} ${time} */${filecomment} ${package_declaration} ${typecomment} ${type_declaration}

2. Method Note: Templates, Comments, Methods, code Style---Java----Preferences, Window---- It, you can edit your own method annotations.

/** * @author YANGCJ * @date ${date} ${time} * ${tags} */

After saving the settings, try again, as follows:

/** * * @author yangcj * @date 2017-2-27 PM 5:24:24 * @param uid * @return */public map<string, string> Getsysuserid (String uid) {    }


This article is from the "Love Life, Love Java" blog, please be sure to keep this source http://ycj7126168.blog.51cto.com/8298495/1901735

MyEclipse automatically generate comments, edit default comment templates

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.