ide-switching

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.

8 stars

Best use case

ide-switching is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

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.

Teams using ide-switching should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/ide-switching/SKILL.md --create-dirs "https://raw.githubusercontent.com/drvoss/everything-copilot-cli/main/skills/copilot-exclusive/ide-switching/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/ide-switching/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How ide-switching Compares

Feature / Agentide-switchingStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

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.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# 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

1. Use Copilot CLI to make sweeping changes across many files
2. Open VS Code: `code .`
3. Use VS Code's Source Control panel to review all changes visually
4. Use VS Code's Copilot Chat to ask questions about specific diffs
5. Return to CLI for any follow-up batch operations

#### Pattern 2: VS Code Debug, CLI Fix

1. Hit a bug while coding in VS Code
2. Use VS Code debugger to identify the root cause
3. Switch to CLI for the fix — especially if it spans multiple files
4. CLI makes the edits, runs the tests, confirms the fix
5. 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:

```json
// .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

```bash
# 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

```bash
# 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.

Related Skills

verification-before-completion

8
from drvoss/everything-copilot-cli

Use before claiming any task is done — run the exact command that proves the fix works, read the output, and only then report success.

using-git-worktrees

8
from drvoss/everything-copilot-cli

Use when you need multiple branches checked out at once — create isolated working directories for parallel development without cloning the repository repeatedly

triage

8
from drvoss/everything-copilot-cli

Use when a single issue needs structured triage — classify it, reproduce if needed, request missing information, and leave a durable brief or close-out note in the tracker.

to-issues

8
from drvoss/everything-copilot-cli

Use when a plan, spec, or PRD must become an actionable backlog — break it into thin dependency-aware issues that each deliver a verifiable vertical slice

sprint-workflow

8
from drvoss/everything-copilot-cli

Use when starting a new feature, refactor, or multi-step dev task — runs the full sprint cycle (Think → Plan → Build → Review → Test → Ship → Monitor) using Copilot CLI's plan/autopilot modes.

sprint-retro

8
from drvoss/everything-copilot-cli

Use at the end of a sprint to run a data-driven retrospective — analyzes session history and git metrics to surface what shipped, what slowed you down, and concrete improvements.

security-audit

8
from drvoss/everything-copilot-cli

Use when a codebase needs a formal security audit beyond a quick scan — applies OWASP Top 10 and STRIDE threat modeling from a CSO perspective to surface systemic vulnerabilities.

release

8
from drvoss/everything-copilot-cli

Use when a sprint or feature is complete and ready to ship — tags the version, generates GitHub Release notes, runs rollout or smoke verification, and publishes to npm/PyPI/Docker registries.

prompt-optimizer

8
from drvoss/everything-copilot-cli

Use when a rough prompt, vague idea, or task description needs to become a finished copy-pasteable prompt for a chat-based LLM - rewrite it into one ready-to-send prompt with no blanks, no placeholders, and a clear output shape.

outside-voice

8
from drvoss/everything-copilot-cli

Use when you need an independent second opinion before, during, or after implementation — run challenge, consult, or review mode in a direct builder-to-builder voice

llm-wiki

8
from drvoss/everything-copilot-cli

Use when research or domain knowledge keeps getting rediscovered across sessions — build a supplementary markdown wiki that compounds synthesized knowledge without replacing GitHub or committed project guidance

interview-me

8
from drvoss/everything-copilot-cli

Use when a request is underspecified and you need to discover what the user actually wants before writing a plan, spec, or code - ask one question at a time, attach your current hypothesis, and stop only after the intent is explicitly confirmed.