Skip to content

Instantly share code, notes, and snippets.

@umarpazir11
Last active November 8, 2016 06:42
Show Gist options
  • Save umarpazir11/3b944bb54d041b123414e6233aeb8bf4 to your computer and use it in GitHub Desktop.
Save umarpazir11/3b944bb54d041b123414e6233aeb8bf4 to your computer and use it in GitHub Desktop.
If you want to write comments for your android functions, there is an easy way to auto generate the basic comment skeleton in Android Studio. First define you function with all the necessary parameters and a return value. Then keep the cursor above the function, type /** and press Enter key. You can see the required will be generate above your f…
Keep the cursor above the function, type /** and press Enter key.
/**
*
* @param title
* @param isValid
* @param listNames
* @return
*/
private boolean shouldGenerateAutoComments(String title, boolean isValid, List<String> listNames){
// function code
return true;
}
@umarpazir11
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment