Accelerate coding with AI code completion
Stay organized with collections
Save and categorize content based on your preferences.
AI in Android Studio offers autocompletion of code that appears as gray
italicized text as you type. This feature saves you time and lets you complete
coding projects faster by suggesting full functions. When AI code completion is
enabled, the agent might send additional information from your codebase such as
surrounding pieces of your code, file types, and other necessary information to
provide context to the LLM and provide more relevant suggestions.
Open a file and start typing. Suggestions only trigger when the cursor is at
the end of a line or anywhere on a blank line.
Press Tab to accept a suggestion and Esc to clear a
suggestion.
Keep in mind that the system won't always generate code completions. It's
possible that the model doesn't have enough information to generate a response
with high confidence.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-11-05 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-11-05 UTC."],[],[]]