-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Describe the feature or problem you'd like to solve
When working with multiple Copilot CLI sessions across different repositories, worktrees, or branches, there's no quick way to open an IDE directly in the session's working context. Currently, users must manually navigate to the correct directory and launch their IDE, breaking the workflow.
The existing /ide command does not open a new IDE instance in the session's CWD - this gap leads to friction when reviewing diffs, code changes, or making manual edits in the context of a specific agent session.
Proposed solution
Extend the /ide command (or add a new keyboard shortcut like Ctrl+I) to launch the user's preferred IDE in the session's working directory.
Key capabilities:
- Multiple IDE support - Allow users to configure their preferred IDE (VS Code, Visual Studio, JetBrains, etc.)
- Flexible context options:
- Session CWD - Open IDE at the current working directory of the session
- Repository root - Open IDE at the git repository root
- Invocation directory - Open IDE at the original directory where Copilot CLI was started
- Dual triggers:
- Keyboard shortcut (e.g.,
Ctrl+IorCtrl+Shift+O) - Slash command
/ideor/ide open
- Keyboard shortcut (e.g.,
Configuration example:
copilot config set ide.editor "code" # or "code-insiders", "devenv", "idea"
copilot config set ide.default-context "cwd" # or "repo-root", "invocation-dir"
Example prompts or workflows
-
Multi-worktree workflow:
- User has 3 terminals with Copilot CLI in different git worktrees
- In session 2, agent makes changes to
src/auth/login.ts - User presses
Ctrl+I→ VS Code opens at that worktree's root - User reviews diff in IDE, makes tweaks, returns to CLI
-
Branch-specific review:
- Copilot CLI session is in
feature/new-apibranch - User types
/ideto open IDE in current context - IDE opens with the branch already checked out at the correct directory
- Copilot CLI session is in
-
Quick file inspection:
- Agent reports "I've updated
package.json" - User types
/ide .or presses keyboard shortcut - IDE opens in session CWD, user can immediately see the file
- Agent reports "I've updated
-
Configurable context:
- User prefers VS Code:
copilot config set ide.editor "code" - User types
/ide --repo-rootto open at repository root instead of CWD
- User prefers VS Code:
-
Cross-IDE support:
- Team member uses Visual Studio:
copilot config set ide.editor "devenv" - Same
/idecommand works, opens Visual Studio instead
- Team member uses Visual Studio:
Additional context
Current behavior gap:
The /ide command exists but does not open a new IDE instance in the session's working directory context. Users discovering this command expect it to solve this exact use case.
User pain points addressed:
- Managing multiple CLI sessions across different repos/worktrees/branches
- Context-switching friction when needing to review code in an IDE
- Having to manually
cdand launch IDE loses the mental model of "this session = this context"
Similar patterns in other tools:
- VS Code's "Open in Terminal" opens terminal at file location
- GitHub Desktop's "Open in VS Code" opens IDE at repo root
code .command already exists but requires knowing the correct directory