[null,null,["最后更新时间 (UTC):2025-07-31。"],[],[],null,["# Rethink variable names\n\nGemini in Android Studio streamlines your workflow and makes it easier to keep\nyour code organized with AI-powered refactoring features. You can ask Gemini for\nvariable name suggestions and quickly update all instances of the variable name\nin the current file.\n\nIf you want to rename a specific variable, class, or method, highlight the\nvariable, right-click, and select **Rename** to get suggestions (it might take a\nsecond for Gemini's suggestions to appear). Gemini suggests appropriate names\nbased on the code context. Double-click on a suggested name to update all\ninstances of the variable name.\n\nTo rethink all the variables in the current function or file, put the cursor in\nthe function or at the top-level of the file (outside of any function),\nrespectively. Then right-click and select **Gemini \\\u003e Rethink variable names**. A\ndialog appears where you can review the suggested names and accept only the ones\nyou like."]]