Edit

Share via


Set up GitHub Copilot for Windows development

This guide walks you through setting up GitHub Copilot with the tools that make it genuinely useful for Windows development: the WinUI 3 development plugin that gives Copilot accurate Windows App SDK context, and the Microsoft Learn MCP Server that gives Copilot live access to official Windows documentation.

Note

Building and debugging WinUI 3 apps requires Visual Studio — VS Code doesn't have MSIX build tooling or WinUI project templates. If you're working on other Windows frameworks (Electron, Flutter, .NET, or Rust via winapp CLI), VS Code works well for those. Steps below are marked accordingly.

Prerequisites


Step 1: Install GitHub Copilot in your IDE

GitHub Copilot is built into Visual Studio 2022 17.10 and later. Visual Studio is required for WinUI 3 development.

  1. Open Visual Studio and go to Extensions > Manage Extensions.
  2. Search for GitHub Copilot and install it, or verify it's already installed.
  3. Sign in via Tools > Options > GitHub > Accounts.

For detailed setup, see GitHub Copilot in Visual Studio.

Step 2: Install the WinUI 3 development plugin

The WinUI 3 development plugin from the Awesome Copilot community repository teaches Copilot the right Windows App SDK patterns — preventing common mistakes like using deprecated UWP APIs.

Run this command in your project root (or any directory where you want Copilot to pick up the plugin):

copilot plugin install winui3-development@awesome-copilot

This copies agents, skills, and custom instructions into your project's .github/ directory. Copilot automatically picks them up the next time you open the project.

Tip

You can also browse and install Copilot plugins directly from VS Code using the Awesome Copilot extension.


Step 3: Add the Microsoft Learn MCP Server

The Microsoft Learn MCP Server gives Copilot live access to official Microsoft documentation — so it can look up current API references and code samples as it helps you code.

  1. Go to Tools > Options > GitHub > Copilot > MCP Servers.
  2. Add a new server with the URL: https://learn.microsoft.com/api/mcp

Step 4: Verify your setup

Open Copilot Chat and try these prompts to confirm everything is working:

Test the WinUI 3 plugin:

"Add a confirmation dialog to my WinUI 3 app that asks before deleting an item."

Copilot should respond with a ContentDialog implementation including the required XamlRoot setup — the plugin's Windows App SDK context guides it to the right modern API without you needing to specify what to avoid.

Test the Learn MCP Server:

"Look up the latest Windows App SDK release notes and tell me what's new."

Copilot should fetch the current release notes from Microsoft Learn and summarize them.


Optional: Add more Windows MCP servers

Extend Copilot's context further with additional Windows-specific MCP servers:

MCP Server What it gives Copilot URL / setup
Windows Settings Read/write Windows Settings from Copilot Windows Settings connector
Azure DevOps Access work items, PRs, and builds Azure DevOps MCP Server

Next steps