When I type "/** + Enter" above a method in Android Studio, it automatically generates this Javadoc for me.
/**
*
* @param xInt
* @param xString
* @param xBoolean
* @return
*/
public static String someMethod(int xInt, String xString, boolean xBoolean) {
if (xString == Integer.toString(xInt) == xBoolean) {
return "all are equal";
}
return "a string";
}
I want to change the JavaDoc template, so that when I type "/** + Enter", it will automatically generate this:
/**
* Explanation of Method here
*
* @param xInt Interger Explanation here
* @param xString String Explanation here
* @param xBoolean Boolean Explanation here
* @return Explanation Here
*/
I don't think it is possible to customize the JavaDocs template. This is done automatically by Android Studio based on the method signature.
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.