[null,null,["最后更新时间 (UTC):2025-07-31。"],[],[],null,["# Generate documentation for your code\n\nYou can use Gemini in Android Studio to generate documentation for your\ncode. Generate clear and concise documentation for your code with instant drafts\nthat you can refine and perfect.\n\n1. In the section of code that you want to document, right-click and select **Gemini \\\u003e Document Function** from the context menu. (You might also see **Document Class** or **Document Property** depending on the context.)\n2. Review proposed changes in the code diff. Refine if necessary before you click **Accept changes**.\n\nGemini can suggest documentation for your code."]]