1.3 KiB
1.3 KiB
Android AI Setup
Setup: VS Code + GitHub Copilot Extension
Prerequisites
- VS Code installed and up to date.
- GitHub account with Copilot Enterprise access.
Install and Sign In (High-Level)
- Install the GitHub Copilot extension.
- Sign in with your GitHub account.
- Confirm Copilot is enabled in VS Code.
- Run a simple prompt to verify suggestions appear.
Verification Steps
- Open a Kotlin file and start a small function.
- Confirm inline suggestions appear.
- Open Copilot Chat and ask a short question.
Android-Specific Guidance
- Ask for Kotlin/Java patterns with small, bounded tasks.
- Request unit tests for services and view models.
- Prefer incremental changes over large rewrites.
Starter Prompts
- "Create a Kotlin data class and mapper for this API response."
- "Write unit tests for this repository using JUnit."
- "Refactor this file to reduce duplication without changing behavior."
Android Troubleshooting
- If suggestions are missing, confirm sign-in and access.
- If the extension is disabled, check extension settings.
- If responses are blocked, check network or policy constraints.
Common Setup Gaps
- Copilot access not provisioned for the GitHub account.
- VS Code extension disabled after an update.
- Multiple AI extensions competing for suggestions.