Agent-Logs-Url: https://github.com/donnyandjoern-debug/personal/sessions/93826564-9b2d-4153-87ef-aff93b139427 Co-authored-by: donnyandjoern-debug <262665187+donnyandjoern-debug@users.noreply.github.com>
3.4 KiB
3.4 KiB
🤖 GitHub Copilot Guide — Family Hoppe
Quick reference for getting the most out of GitHub Copilot across both Family Hoppe accounts.
Accounts & Plans
| Account | Plan | Editor | Status |
|---|---|---|---|
| donnyandjoern-debug | Copilot Pro ($10/mo) | VS Code (Mac) | ✅ Active |
| Joern (account pending creation) | Copilot Pro ($10/mo) | VS Code (Windows) | 🟡 Planned |
Copilot Features (Pro Plan)
| Feature | Description | Where |
|---|---|---|
| Code completion | Inline AI suggestions as you type | VS Code editor |
| Copilot Chat | Ask questions about code, get explanations | VS Code sidebar / inline |
| Copilot Edits | Multi-file AI edits for larger changes | VS Code |
| Copilot Coding Agent | Autonomous agent that solves GitHub issues | GitHub.com (browser) |
| PR summaries | Auto-generated pull request descriptions | GitHub.com |
| Copilot CLI | AI-powered terminal suggestions | Terminal / shell |
| GitHub Models | Access to AI models via the API | GitHub Marketplace |
VS Code Setup
Install Copilot in VS Code
- Open VS Code
- Go to Extensions (
Ctrl+Shift+X/Cmd+Shift+X) - Search for "GitHub Copilot" and install it
- Also install "GitHub Copilot Chat"
- Sign in with your GitHub account when prompted
Key Shortcuts (VS Code)
| Action | Mac | Windows |
|---|---|---|
| Accept suggestion | Tab |
Tab |
| Dismiss suggestion | Esc |
Esc |
| Next suggestion | Alt+] |
Alt+] |
| Previous suggestion | Alt+[ |
Alt+[ |
| Open Copilot Chat | Ctrl+Cmd+I |
Ctrl+Alt+I |
| Inline chat | Cmd+I |
Ctrl+I |
| Open Copilot Edits | Ctrl+Shift+I |
Ctrl+Shift+I |
Copilot Coding Agent (Cloud Agent)
The Copilot Coding Agent lets Copilot autonomously work on GitHub issues:
- Go to a GitHub Issue in your browser
- Click "Assign to Copilot" (or mention
@github-copilotin a comment) - Copilot opens a PR with the solution
- Review the PR, request changes if needed, and merge
Tips:
- Write clear, detailed issue descriptions — the agent works from the issue text.
- The agent works best on well-scoped, single-concern issues.
- Always review the agent's PR before merging.
Multi-Account Workflow
When working across both accounts (Mac + Windows):
- Each account has its own Copilot Pro subscription — they work independently.
- Both accounts can collaborate on the same Hoppe-home organisation repos.
- Copilot suggestions are personal — they do not sync between accounts.
- Use GitHub Issues and PRs to hand off work between accounts.
Useful Copilot Chat Prompts
# Explain code
/explain
# Fix a bug
/fix
# Generate tests
/tests
# Create documentation
/doc
# Simplify code
Simplify this function and reduce duplication
# Review a PR
Review this pull request for security issues and code quality
# Clean up a repo
What files in this repo are redundant or should be removed?
Best Practices
- ✅ Always review Copilot suggestions before accepting
- ✅ Use Copilot Chat to understand unfamiliar code
- ✅ Use the Coding Agent for well-defined GitHub issues
- ✅ Write good commit messages — Copilot can help with these too
- ❌ Don't accept suggestions blindly — Copilot can hallucinate
- ❌ Don't use Copilot to generate secrets, passwords, or credentials