ide-switching
Skill47 starsChanged 4 months agoMITView on GitHub
Use when moving between VS Code and Copilot CLI in the same session — transfers context between environments so you don't lose state when switching from editor to terminal.
- Reads credentials
In this repository111 other files it gives its agents.
- AGENTS.mdAGENTS.md
- COPILOT-INSTRUCTIONS.mdCopilot instructions
- .github/copilot-instructions.mdCopilot instructions
- ai-visibilitySkill
- content-strategySkill
- seoSkill
- actions-debuggingSkill
- agentic-engineeringSkill
- autopilot-patternsSkill
- background-agentSkill
- context-primeSkill
- copilot-memorySkill
- cross-session-memorySkill
- ecosystem-intakeSkill
- fleet-parallelSkill
- github-code-searchSkill
- github-codespaces-efficiencySkill
- github-issue-triageSkill
- github-pr-workflowSkill
- knowledge-curatorSkill
- mcp-builderSkill
- mcp-ecosystemSkill
- multi-model-strategySkill
- plan-mode-masterySkill
- scope-guardSkill
- session-managementSkill
- stack-detectorSkill
- sub-agent-sandboxingSkill
- task-intake-routerSkill
- team-plannerSkill
- token-cost-optimizerSkill
- api-and-interface-designSkill
- code-reviewSkill
- context-engineeringSkill
- cpp-debuggingSkill
- deprecation-and-migrationSkill
- diagnoseSkill
- fix-build-errorsSkill
- fix-github-issueSkill
- implementSkill
- improve-codebase-architectureSkill
- nestjs-prismaSkill
- nextjs-prismaSkill
- performance-optimizationSkill
- pr-multi-perspective-reviewSkill
- prototypeSkill
- react-vitestSkill
- receiving-code-reviewSkill
- refactor-cleanSkill
- reviewSkill
- skill-creatorSkill
- source-driven-developmentSkill
- spec-driven-developmentSkill
- systematic-debuggingSkill
- tdd-workflowSkill
- zoom-outSkill
- add-to-changelogSkill
- api-documentationSkill
- architecture-decisionsSkill
- code-tourSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
When VS Code's Copilot Chat lacks a tool you need (SQL, fleet agents, MCP)
- Distinctive: line 48
Use Copilot CLI to make sweeping changes across many files
- Distinctive: line 50
Use VS Code's Source Control panel to review all changes visually
- Distinctive: line 51
Use VS Code's Copilot Chat to ask questions about specific diffs
- Distinctive: line 57
Use VS Code debugger to identify the root cause
- Very specific: line 64
Keep the CLI workspace config in .mcp.json, and mirror the same server definitions into any editor-specific config you standardize on:
- Distinctive: line 80
Treat the workspace config as the CLI-facing source of truth, then keep editor integrations aligned with the same server definitions.
- Very specific: line 116
MCP config sharing: Keep workspace MCP configs in .mcp.json, then mirror the same server definitions into any editor-specific config your …
- Very specific: line 120
Quick switch: Keep a terminal open alongside VS Code.
- Distinctive: line 122
Context handoff: When switching from VS Code to CLI, paste relevant code snippets or error messages to give CLI the context it needs.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
IDE ↔ CLI Switching
Why This is Copilot-Exclusive
GitHub Copilot exists in both VS Code and the terminal under a single subscription and unified platform. You can start a conversation in VS Code's Copilot Chat, switch to the CLI for batch automation, and return to VS Code for visual debugging — all with the same model access, same MCP servers, and same GitHub integration. Claude Code is terminal-only with no IDE counterpart; switching contexts means losing your AI assistant entirely.
When to Use
- Visual tasks (diffing, debugging UI, extension-based tooling) → VS Code
- Batch operations, automation, scripting → CLI
- Large refactors that benefit from both visual review and automated execution
- When VS Code's Copilot Chat lacks a tool you need (SQL, fleet agents, MCP)
- Pair programming where one person uses IDE, another uses CLI
Workflow
Know Your Strengths: When to Use Each
| Task | VS Code Copilot | Copilot CLI |
| Visual code review | ✅ Side-by-side diffing | ❌ |
| Breakpoint debugging | ✅ Debug panel | ❌ |
| Single-file inline edits | ✅ Inline suggestions | ✅ Edit tool |
| Multi-file refactoring | ⚠️ Limited | ✅ Fleet mode |
| CI/CD debugging | ❌ | ✅ Actions MCP tools |
| PR review & management | ⚠️ Basic | ✅ Full GitHub MCP |
| Batch test execution | ⚠️ Manual | ✅ Background agents |
| SQL-based task tracking | ❌ | ✅ Session database |
| Multi-model selection | ⚠️ Limited | ✅ 20+ models available |
| Terminal automation | ⚠️ Integrated terminal | ✅ Native |
Switching Patterns
Pattern 1: CLI-First, Visual Verify
- Use Copilot CLI to make sweeping changes across many files
- Open VS Code:
code . - Use VS Code's Source Control panel to review all changes visually
- Use VS Code's Copilot Chat to ask questions about specific diffs
- Return to CLI for any follow-up batch operations
Pattern 2: VS Code Debug, CLI Fix
- Hit a bug while coding in VS Code
- Use VS Code debugger to identify the root cause
- Switch to CLI for the fix — especially if it spans multiple files
- CLI makes the edits, runs the tests, confirms the fix
- Back to VS Code for continued development
Pattern 3: Aligned MCP Configuration
Keep the CLI workspace config in .mcp.json, and mirror the same server definitions into any
editor-specific config you standardize on:
// .mcp.json
{
"servers": {
"my-api": {
"command": "npx",
"args": ["my-api-mcp-server"],
"env": { "API_KEY": "${env:MY_API_KEY}" }
}
}
}Treat the workspace config as the CLI-facing source of truth, then keep editor integrations aligned with the same server definitions.
Examples
Large Refactor Workflow
# Step 1: CLI - Rename across the codebase
# "Rename the UserService class to AuthService in all files under src/"
# Copilot uses fleet agents to process files in parallel
# Step 2: VS Code - Visual review
code .
# Review changes in Source Control panel, check diff views
# Step 3: CLI - Run tests and fix issues
# "Run the full test suite and fix any failures from the rename"Morning Developer Workflow
# Start in CLI for triage
# "List my open PRs, check CI status, and summarize review comments"
# Switch to VS Code for focused coding
code src/feature.ts
# Use Copilot Chat inline for suggestions
# Back to CLI for PR creation
# "Create a PR for this branch with a description based on my commits"Tips
- MCP config sharing: Keep workspace MCP configs in
.mcp.json, then mirror the same server definitions into any editor-specific config your team uses. - Use CLI for what VS Code can't do: Fleet mode, background agents, session SQL, and Actions debugging are CLI-exclusive features.
- Quick switch: Keep a terminal open alongside VS Code. Use
code <file>from CLI to open specific files for visual inspection. - Context handoff: When switching from VS Code to CLI, paste relevant code snippets or error messages to give CLI the context it needs.
- Same subscription: Both tools use the same GitHub Copilot license — no extra cost for using both. Maximize your subscription value.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

