Android Studio documentation comment, method comments

Doc comments set is very simple, Setting -> Editor -> File and Code Templates -> Includes -> File Header, then you can set up according to their needs.

/**
 * @Description: java类作用描述
 * @author: ${USER} 
 * @date: ${DATE}
 */

Here Insert Picture Description
Automatically generated when a set is complete, create a new class notes, create a.class as follows:
Here Insert Picture Description
the use of plug-in JavaDoc2, can quickly add annotation method
to download plug-ins little introduction, using the following method:

  • Add comments to the current method, the method to move the mouse, and then shift + alt + G.
  • To class all methods to annotate, that is shift + ctrl + alt + G
  • Undo Current / selection method comment is shift + alt + Z
  • Revoke all comments class is shift + ctrl + alt + Z
    the right or select Generate, corresponding to the four kinds of red frame portions are shortcut.
    Here Insert Picture DescriptionHere Insert Picture Description
    The above results are the following four ways:
    Shift + Alt + G:
    Here Insert Picture Description
    Shift + Ctrl + Alt + G:
    Here Insert Picture Description
    Shift the Z + Alt +:
    Here Insert Picture Description
    Shift + Ctrl + Alt + the Z:
    Here Insert Picture Description
Published 18 original articles · won praise 1 · views 778

Guess you like

Origin blog.csdn.net/aha_jasper/article/details/104766724