How to set up GitHub Copilot in VS Code and run your first task
GitHub Copilot is GitHub's AI coding assistant, and VS Code has it built in. This guide covers installing VS Code, signing in to Copilot, turning off training on your data, and giving the agent a first small task. Everything here is quoted from VS Code's setup, Copilot setup and agents quickstart pages, VS Code's requirements, uninstall and custom instructions pages, and GitHub's Copilot docs, checked Oct 2026.
Not affiliated with or endorsed by GitHub or Microsoft. Check their current docs before relying on these details.
Our tool page: GitHub Copilot
What you need first
VS Code's Copilot page says "To use Copilot in VS Code, you need access to GitHub Copilot with your GitHub account." (checked Oct 2026) If you don't have a plan yet, "you'll be signed up for the Copilot Free plan and get a monthly allowance of inline suggestions and AI credits." (checked Oct 2026) For paid plans, see GitHub's Copilot plans page (checked Oct 2026).
System requirements, from VS Code's requirements page (checked Oct 2026):
| Requirement | |
|---|---|
| Size | "a small download (< 200 MB)" (checked Oct 2026) with "a disk footprint of < 500 MB" (checked Oct 2026) |
| Hardware | "1.6 GHz or faster processor" (checked Oct 2026), "1 GB of RAM" (checked Oct 2026) |
| Windows | "Supported versions of Windows client (64-bit)" (checked Oct 2026) |
| macOS | "macOS versions with Apple security update support" (checked Oct 2026) |
| Linux | Ubuntu Desktop 20.04, Debian 10, Red Hat Enterprise Linux 8, Fedora 36 |
Step 1: Install VS Code
Download it from code.visualstudio.com. From the setup docs:
- Windows: "Download the User Setup installer (.exe). Run the installer and follow the prompts." (checked Oct 2026) It "adds code to your PATH, so you can also open a folder from the terminal with code ." (checked Oct 2026)
- macOS: "Open the .dmg file and drag Visual Studio Code.app to the Applications folder." (checked Oct 2026) To use
codein the terminal, run "Shell Command: Install 'code' command in PATH" (checked Oct 2026). - Linux: for a .deb file, "Install it with sudo apt install ./<file>.deb" (checked Oct 2026). For an .rpm file, "Install it with sudo dnf install ./<file>.rpm" (checked Oct 2026). The docs say "Installing the package sets up the apt or dnf repository for automatic updates." (checked Oct 2026)
Step 2: Open a project
"Open VS Code and select File > Open Folder...." (checked Oct 2026) Then "Select an existing project folder." (checked Oct 2026) If VS Code asks whether you trust the folder, the docs say to "review the folder contents and choose whether you trust its authors. Only trust code from sources you know." (checked Oct 2026)
Step 3: Sign in to Copilot
VS Code has built-in AI features. The docs note that "AI features are optional. You don't need an account to use the core editor." (checked Oct 2026) To turn them on: "Hover over the Copilot icon in the Status Bar and select Use AI Features. Choose a sign-in method and follow the prompts." (checked Oct 2026)
You can also open the Command Palette (Ctrl+Shift+P, or Shift+Cmd+P on Mac) and run "GitHub Copilot: Sign in".
Step 4: Turn off training on your data
GitHub's docs say that starting April 24, 2026, on Copilot Free, Pro, Pro+ or Max, "GitHub may use your interactions with GitHub features and services" to "train and improve AI models", including inputs, outputs, code snippets and associated context (checked Oct 2026).
To opt out on GitHub: click your profile picture, then Copilot settings. GitHub's docs then say to "Select the "Allow GitHub to use my data for AI model training" dropdown menu and click Disabled." (checked Oct 2026) GitHub also says it "does not use Copilot Business or Copilot Enterprise customer data to train AI models." (checked Oct 2026)
VS Code also notes that telemetry for free Copilot "is currently enabled" (checked Oct 2026), and you can turn it off by setting telemetry.telemetryLevel to off. For more, see our guide on whether AI coding tools train on your code.
Step 5: Your first task
The quickstart says: "Requests in this quickstart use AI credits from your Copilot plan." (checked Oct 2026) Open the Chat view with Ctrl+Alt+I (Ctrl+Cmd+I on Mac) and select + to start a new chat. Our advice, not a vendor quote: for permissions, pick "Manual permissions", which "Requests your approval for running tools or accessing resources." (checked Oct 2026)
Here is VS Code's example prompt (we haven't tried it ourselves). It builds a tiny app, so try it in a new empty folder:
Create a task list web app in a single index.html file with embedded CSS and JavaScript. Let me add, complete, and delete tasks. Save the tasks in local storage so they persist after a page reload. Use no external libraries.
"Follow the agent's progress and review each approval request before you accept it." (checked Oct 2026) When it's done, "Inspect each pending edit in the editor. Use Keep to acknowledge it or Undo to revert it." (checked Oct 2026) Our advice, not a vendor quote: undo anything you didn't ask for.
To undo a whole request: hover over an earlier request and select Restore Checkpoint. The docs warn that this "doesn't reverse terminal commands, network requests, deployments, or changes to external services." (checked Oct 2026) Our advice, not a vendor quote: keep approvals on manual, and commit to Git before you start.
Step 6: Give it project instructions
VS Code's custom instructions docs say "For Copilot sessions, use .github/copilot-instructions.md for project-wide guidance." (checked Oct 2026) You can also "enter /init in a chat session to create starter custom instructions for a project." (checked Oct 2026) Our Copilot custom instructions guide walks through it.
Updating, turning it off, and removing it
To update, follow VS Code's setup overview. To turn off Copilot without uninstalling, use the chat.disableAIFeatures setting. The docs say this "disables and hides features like chat or inline suggestions in VS Code and disables the Copilot extensions." (checked Oct 2026)
To uninstall VS Code, the uninstall docs say:
- Windows: "Search for Add or Remove Programs and find Visual Studio Code in the Apps > Apps & features list. Select Uninstall" (checked Oct 2026)
- macOS: "Right-click on the Visual Studio Code application and select Move to Trash." (checked Oct 2026)
- Linux: "use your package manager's uninstall or remove option." (checked Oct 2026)
To remove your settings too, the uninstall docs list these folders:
- Windows:
%APPDATA%\Code,%USERPROFILE%\.vscode-sharedand%USERPROFILE%\.vscode - macOS:
$HOME/Library/Application Support/Code,~/.vscode-sharedand~/.vscode - Linux:
$HOME/.config/Code,~/.vscode-sharedand~/.vscode
Next steps
- Write project rules: Copilot custom instructions guide
- Or use one instructions file: AGENTS.md and CLAUDE.md guide
- Keep secrets out of its reach: keeping secrets safe with AI coding tools
- Other install guides: Claude Code, Codex CLI and Cursor
Not affiliated with or endorsed by GitHub or Microsoft. Check their current docs before relying on these details.