How to generate javadoc comments in Android Studio

前端 未结 16 2299
野的像风
野的像风 2020-12-04 10:01

Can I use shortcut keys in Android studio to generate javadoc comments?

If not, what is the easiest way to generate javadoc comments?

相关标签:
16条回答
  • 2020-12-04 10:39

    Javadoc comments can be automatically appended by using your IDE's autocomplete feature. Try typing /** and hitting Enter to generate a sample Javadoc comment.

     /**
     *
     * @param action          The action to execute.
     * @param args            The exec() arguments.
     * @param callbackContext The callback context used when calling back into JavaScript.
     * @return
     * @throws JSONException
     */
    
    0 讨论(0)
  • 2020-12-04 10:40

    I can't find any shortcut to generate javadoc comments. But if you type /** before the method declaration and press Enter, the javadoc comment block will be generated automatically.

    Read this for more information.

    0 讨论(0)
  • 2020-12-04 10:41

    Simply select (i.e. click) the method name, then use the key combo Alt+Enter, select "Add JavaDoc"

    This assumes that you have not already added comments above the method, else the "Add JavaDoc" option will not appear.

    0 讨论(0)
  • 2020-12-04 10:43

    You can install JavaDoc plugin from Settings->Plugin->Browse repositories.

    get plugin documentation from the below link

    JavaDoc plugin document

    0 讨论(0)
提交回复
热议问题