In this categoryVS Code Setup ยท 25
- How to Set Up GitHub Copilot in VS CodeStart
- How to Use Copilot Chat and Inline Chat in VS Code
- How to Install and Manage Extensions in VS Code
- How to Install the Continue Extension in VS Code
- How to Install Cline, the Autonomous Coding Agent, in VS Code
- How to Configure Continue with an API Model
- How to Set Up an AI Assistant in VS Code
- How to Run Continue with a Local Model Using Ollama
- How to Run Copilot, Continue, and Cline Together Without Conflicts
- How to Add an MCP Server to Cline
- How to Fix AI Suggestions Not Appearing in VS Code
- How to Install and Trust an AI Extension in VS Code
- How to Install a VS Code Extension from the Command Line
- How to Create a launch.json to Debug a Node.js App in VS Code
- How to Initialize a Git Repository in VS Code
- How to Stage, Commit, and Push Changes from VS Code
- How to Debug a Browser App in VS Code with the Built-in Chrome Debugger
- How to Resolve Git Merge Conflicts in VS Code
- How to Run Build and Dev Commands with tasks.json in VS Code
- How to Add Environment Variables to a VS Code Debug Configuration
How to Set Up GitHub Copilot in VS Code
Install the GitHub Copilot extension, sign in, and turn on inline code suggestions in a few minutes.
GitHub Copilot suggests whole lines and blocks of code as you type, drawing on the context of your open files. This guide covers the full setup: installing the extension, signing in with GitHub, and confirming that inline suggestions appear. You will need an active Copilot subscription or access through your organization or the free tier.
What you need
- VS Code installed
- A GitHub account
- A Copilot plan: the free tier, Copilot Pro, or org access
- About 5 minutes
Step 1: Install the Copilot extension
Open the Extensions view, search for GitHub Copilot, and install the extension published by GitHub. The companion extension GitHub Copilot Chat installs alongside it and gives you the chat sidebar and inline chat.
Step 2: Sign in with GitHub
After installing, a notification asks you to sign in. Click Sign in to GitHub, approve the request in the browser window that opens, and return to VS Code. The account icon at the bottom left will now show your GitHub identity.
Step 3: Trigger an inline suggestion
Open any code file and start typing a function or a comment describing what you want. Copilot shows a grey ghost-text suggestion. Press Tab to accept it, Esc to dismiss it, or Alt+] and Alt+[ to cycle through alternatives.
Step 4: Confirm Copilot is active
Look at the Copilot icon in the status bar at the bottom of the window. When it is enabled and working, it appears solid. If it shows a slash or a warning, click it to see whether you are signed out, offline, or have disabled completions for the current file type.
{
"github.copilot.enable": {
"*": true,
"markdown": false,
"plaintext": false
}
}Result
Copilot is installed, signed in, and producing inline suggestions. From here you can open the chat sidebar with the chat icon, ask questions about your code, and accept or reject completions as you type.
Related guides
How to Use Copilot Chat and Inline Chat in VS Code
Ask questions in the Copilot chat sidebar and edit code in place with inline chat and slash commands.
How to Install the Continue Extension in VS Code
Install Continue, the open-source AI coding assistant, and open its chat and edit panels for the first time.
Watch related tutorials
35:00
18:22
12:47
18:33
15:21
15:22New guides in your inbox
Fresh step-by-step how-to guides as we publish them. One email a week, no more.