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