Reprinted from: http://blog.csdn.net/hui1502/article/details/7023758
The annotation format of the automatically generated method, for example
/**
* @ Param Str
* @ Return
* @ Throws parseexception
*/
The shortcut key is Alt + Shift + J. Place the cursor on the method name and press the shortcut key. Will generate the format of the above method comment, the specific content must be filled in by yourself.
This format is also generated when the cursor is placed on the class name, but only author is used to automatically fill in your system user name.
This operation, right-click the method, source, generate element comment
another option is to automatically comment out/uncomment Code Ctrl +/or Ctrl + 7 (which seems to be an effect ), three or five lines of code. You do not need to write a single line of code by hand. You can use the mouse to select the line to be commented out, and press Ctrl +/to automatically add a slash to the beginning of the line //, then, the comment is canceled.