简体   繁体   中英

autogenerate method comments for java code in eclipse

How do I auto generate method comments for java code in eclipse. Basically what I want is as below

/**
 * @param  ${param_name}  ${param_type} 
 * @return ${return type}
 */

I did looked at other threads but I didn't get the clue for doing the above for methods. I got that for class though.

Maybe you want the "Add Javadoc Comment" command? Default shortcut is Alt-Shift+J

Install JAutodoc plugin from here . Press Ctrl + Alt + J

More info here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM