Can I use shortcut keys in Android studio to generate javadoc comments?
If not, what is the easiest way to generate javadoc comments?
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
*/
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.
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.
You can install JavaDoc plugin from Settings->Plugin->Browse repositories.
get plugin documentation from the below link
JavaDoc plugin document