AI • Science • Technology • Future

Coding AI

How to Continue a GitHub Copilot Session in VS Code

Copilot app to VS Code and back
Featured image: Copilot app to VS Code and back. Via original publisher.

GitHub has introduced a way to transfer an ongoing AI code session from its Copilot app to the VS Code editor without losing context or progress.

How to Continue a GitHub Copilot Session in VS Code

Developers can now move an active GitHub Copilot session from the standalone app to the VS Code editor. This maintains the conversation history, code changes, and working context.

The feature allows users to switch environments seamlessly. It’s designed for developers who use both the GitHub Copilot app and VS Code regularly.

Step-by-Step Process

  1. Open the GitHub Copilot app on your device.
  2. Start a new code session or continue an existing one.
  3. While the session is active, tap the ‘Move to VS Code’ option in the app interface.
  4. VS Code will open automatically with the session loaded.
  5. The conversation history and code changes are preserved in the editor.

Once in VS Code, users can continue typing, edit code, and expand the session as needed. The AI agent remains connected and responsive.

Why This Matters for Developers

Many developers work across multiple tools. This feature reduces context loss during transitions between apps.

It supports workflows where users begin coding in the Copilot app for quick prompts and then move to VS Code for full development.

According to the GitHub blog, this continuity improves productivity by minimizing the need to restart conversations or re-enter code snippets.

Background: How GitHub Copilot Works

GitHub Copilot uses machine learning to suggest code based on context. It learns from vast codebases to provide relevant suggestions.

The app version runs independently, allowing real-time suggestions without needing a full IDE. VS Code, meanwhile, is a popular code editor with strong integration capabilities.

Image from the original article
original publisher image. Via original publisher. · Source

By enabling session continuity, GitHub ensures that users don’t lose progress when switching tools.

Limitations and Considerations

Not all features are available in both environments. For example, some app-specific UI elements may not translate directly.

Session continuity only works when the user is actively engaged in a code session. It does not support background or idle sessions.

Users must have both the Copilot app and VS Code installed. The feature requires an active GitHub account and Copilot subscription.

GitHub has not yet tested this feature across all programming languages or project types. Results may vary.

Related Features and Tools

This update reflects GitHub’s ongoing effort to improve developer workflows. It builds on existing tools like the GitHub App and VS Code integration.

For more details, see the original post on the GitHub blog: How to continue a GitHub Copilot app session in VS Code.

GitHub’s Copilot app is available at github.com/features/ai/github-app. VS Code can be accessed at code.visualstudio.com.

The feature is accessible via gh.io/app.

Sources & further reading

Featured image: Copilot app to VS Code and back. Via original publisher. Image source