Ide switching

From drvoss/everything-copilot-cli · View interactive version

Ide switching is an AI agent skill from the GitHub repository drvoss/everything-copilot-cli. 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.

How to use this skill

Skill file

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 can connect to an IDE from the terminal, but Copilot is one product with native chat in both VS Code and the CLI.

When to Use

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:

// .mcp.json
{
  "mcpServers": {
    "my-api": {
      "command": "npx",
      "args": ["my-api-mcp-server"],
      "tools": ["*"],
      "env": { "API_KEY": "${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

same server definitions into any editor-specific config your team uses.

and Actions debugging are CLI-exclusive features.

to open specific files for visual inspection.

or error messages to give CLI the context it needs.

for using both. Maximize your subscription value.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.