[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間: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."]]