Answer: Copilot CLI connects automatically at startup when the current working directory from which you started the CLI matches a workspace folder you have open in VS Code in trusted mode; if there is a match, the CLI connects to the relevant VS Code instance. Status: Confirmed Entry: tool/github-copilot/ide-and-apps/cli-vscode-auto-connect Revision: 3 Digest: sha256:a4019f6c46bf3f73 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:24:41Z Last changed: 2026-11-18T12:57:38Z (Trigger condition: — → matches any workspace folder you have open in VS Code in trusted mode) Last verified: 2026-11-20T13:03:16Z Next check: 2026-11-21T13:03:16Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Trigger condition | matches any workspace folder you have open in VS Code in trusted mode | [1] | 2026-11-20 Connection result | the CLI connects to the relevant VS Code instance | [1] | 2026-11-20 Startup message | Visual Studio Code connected | [1] | 2026-11-20 Multiple windows | the CLI connects to one of them automatically | [1] | 2026-11-20 Switch command | /ide | [1] | 2026-11-20 Sources: [1] GitHub. "Connecting GitHub Copilot CLI to VS Code - GitHub Docs". https://docs.github.com/en/copilot/how-tos/copilot-cli/use-copilot-cli/connecting-vs-code Role: primary. Accessed: 2026-11-20T13:03:16Z Quote: "it checks whether the current working directory from which you started the CLI matches any workspace folder you have open in VS Code in trusted mode" (Supports: Trigger condition) Quote: "If there is a match, the CLI connects to the relevant VS Code instance." (Supports: Connection result) Quote: "will include either "Visual Studio Code connected" or "Visual Studio Code - Insiders connected."" (Supports: Startup message) Quote: "If you have the same workspace open in more than one VS Code window, the CLI connects to one of them automatically." (Supports: Multiple windows) Quote: "you can switch by using the /ide command" (Supports: Switch command) Snapshot SHA-256: a4c4e1cf2e141f0727a8f1f67a66ffca22d0782b571821bcba902f578033c39d (captured 2026-11-18T12:57:38Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T12:57:38Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:03:16Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:03:16Z Last attempt: 2026-11-20T13:03:16Z Notes and limitations: Extracted automatically from a single official source (section "Automatic connection at startup"). Related: https://latestn.com/tool/github-copilot/ide-and-apps/cli-vscode-manual-connect How do I manually connect GitHub Copilot CLI to VS Code during an interactive session? https://latestn.com/tool/github-copilot/ide-and-apps/connect-repo-or-folder How do I connect a repository or folder in the GitHub Copilot app? https://latestn.com/tool/github-copilot/ide-and-apps/copilot-cli-surface What is the GitHub Copilot CLI and how does it differ from other Copilot surfaces? https://latestn.com/tool/github-copilot/ide-and-apps/ask-questions-in-mobile How do I ask GitHub Copilot questions in GitHub Mobile? https://latestn.com/tool/github-copilot/ide-and-apps/canvas-extension-structure How are canvas extensions structured in the GitHub Copilot app? https://latestn.com/tool/github-copilot/ide-and-apps/cli-sessions-in-vscode How do I review file changes as diffs and view or resume GitHub Copilot CLI sessions in VS Code? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T12:57:38Z | changed | Trigger condition: — → matches any workspace folder you have open in VS Code in trusted mode | [1] 2026-11-18T12:57:38Z | changed | Match condition: matches any workspace folder you have open in VS Code in trusted mode → — | [1] 2026-11-18T12:57:38Z | changed | Trigger: When you start Copilot CLI → — | [1] 2026-11-16T12:46:56Z | changed | Switch command: — → /ide | [1] 2026-11-16T12:46:56Z | changed | Multiple windows: — → the CLI connects to one of them automatically | [1] 2026-11-16T12:46:56Z | changed | Startup message: — → Visual Studio Code connected | [1] 2026-11-16T12:46:56Z | changed | Connection result: — → the CLI connects to the relevant VS Code instance | [1] 2026-11-16T12:46:56Z | changed | Match condition: — → matches any workspace folder you have open in VS Code in trusted mode | [1] 2026-11-16T12:46:56Z | changed | Trigger: — → When you start Copilot CLI | [1] 2026-11-16T12:46:56Z | changed | Switch instance command: /ide → — | [1] 2026-11-16T12:46:56Z | changed | Multiple windows behavior: the CLI connects to one of them automatically → — | [1] 2026-11-16T12:46:56Z | changed | Startup confirmation message: Visual Studio Code connected → — | [1] 2026-11-16T12:46:56Z | changed | Result on match: the CLI connects to the relevant VS Code instance → — | [1] 2026-11-16T12:46:56Z | changed | Trigger condition: matches any workspace folder you have open in VS Code in trusted mode → — | [1] 2026-11-13T03:24:41Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/ide-and-apps/cli-vscode-auto-connect/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/github-copilot/ide-and-apps/cli-vscode-auto-connect POST: https://latestn.com/dispute/tool/github-copilot/ide-and-apps/cli-vscode-auto-connect with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/ide-and-apps/cli-vscode-auto-connect?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I connect GitHub Copilot CLI to VS Code automatically at startup? Revision 3, last verified 2026-11-20T13:03:16Z. https://latestn.com/tool/github-copilot/ide-and-apps/cli-vscode-auto-connect (accessed 2026-11-21T09:54:59Z). @misc{LatestN_tool_github_copilot_ide_and_apps_cli_vscode_auto_connect_r3, title = {How do I connect GitHub Copilot CLI to VS Code automatically at startup?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/ide-and-apps/cli-vscode-auto-connect}}, note = {Revision 3; digest sha256:a4019f6c46bf3f73; last verified 2026-11-20T13:03:16Z; accessed 2026-11-21T09:54:59Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/github-copilot/ide-and-apps/cli-vscode-auto-connect