Opening Copilot in VS Code

To open Copilot in Visual Studio Code, press Ctrl+Shift+X on Windows or Linux, or Cmd+Shift+X on Mac to open the Extensions panel. Search for "GitHub Copilot" and install the official extension published by GitHub. Once installed, you'll see a Copilot icon in your left sidebar — click it to open the Copilot chat panel on the right side of your editor.

If you don't see the Copilot icon after installation, reload VS Code by pressing Ctrl+R (Windows/Linux) or Cmd+R (Mac). The first time you open Copilot, you'll need to sign in with your GitHub account. If you don't have one, you can create it for free at github.com.

Copilot requires a paid subscription or a free trial. GitHub offers a 30-day free trial for new users, after which you'll need an active Copilot subscription to continue using it. Students and maintainers of popular open-source projects may be able to use Copilot for free — check GitHub's website for current may be able to access.

Key Takeaways

  • Install the GitHub Copilot extension from the VS Code Extensions panel, then click the Copilot icon in your left sidebar to open the chat panel.
  • You must sign in with a GitHub account and have an active Copilot subscription or free trial to use the extension.
  • If Copilot doesn't appear after installation, reload VS Code to refresh the interface.
  • You can also access Copilot inline while editing code by pressing Ctrl+I (Windows/Linux) or Cmd+I (Mac) to open the inline chat.

Installing the GitHub Copilot Extension

The GitHub Copilot extension is the official tool for using Copilot inside VS Code. Open the Extensions panel by pressing Ctrl+Shift+X or Cmd+Shift+X, then type "GitHub Copilot" in the search box. The first result should be the extension published by GitHub — click it and select Install.

Installation takes less than a minute. Once complete, you'll see an "Uninstall" button where the Install button was. At this point, the extension is ready but not yet active — you need to sign in with your GitHub account to start using it.

Signing In With Your GitHub Account

After installing the extension, click the Copilot icon in your left sidebar (it looks like a speech bubble with a curved line). A panel will open on the right side asking you to sign in. Click "Sign in to GitHub" and your browser will open to github.com.

If you already have a GitHub account, enter your username and password. If you don't have one, click "Create an account" and follow the steps to set one up. After signing in, GitHub will ask you to authorize VS Code to use Copilot — click "Authorize" to confirm. You'll then be redirected back to VS Code, and Copilot will be ready to use.

Understanding Copilot Subscription Requirements

GitHub Copilot is not free for most users. New users receive a 30-day free trial when they first sign in. After the trial ends, you need a paid subscription to continue using Copilot. As of now, GitHub charges a monthly subscription fee — check GitHub's pricing page for the current cost, as this may change.

Some users don't need to pay. Students can use Copilot for free if they verify their student status through GitHub's Student Developer Pack. Maintainers of popular open-source projects may also may have access to for free access. Visit GitHub's Copilot pricing page to see if you meet these criteria.

Using Copilot Chat vs. Inline Chat

VS Code offers two ways to interact with Copilot. Copilot Chat opens in a panel on the right side of your editor and lets you ask questions and have conversations about your code. You can ask Copilot to explain code, suggest improvements, or help you debug. This is the main interface you see when you click the Copilot icon in your sidebar.

Inline Chat lets you interact with Copilot directly in your editor while you're writing code. Press Ctrl+I (Windows/Linux) or Cmd+I (Mac) to open a small input box in your editor. Type your request, and Copilot will suggest changes or completions right where you're working. This is faster for quick questions or edits without switching focus to a separate panel.

Troubleshooting Copilot Installation Issues

If you installed the extension but don't see the Copilot icon in your sidebar, reload VS Code. Press Ctrl+R (Windows/Linux) or Cmd+R (Mac) to reload the window. The icon should appear after the reload completes.

If you see the Copilot icon but can't sign in, check that you have an internet connection and that your GitHub account is active. If you're behind a corporate firewall or proxy, your network settings may block the connection to GitHub. Contact your network administrator for help, or try connecting from a different network to test.

If Copilot opens but shows an error message, your subscription may have expired. Sign in to github.com and check your Copilot subscription status under your account settings. If your free trial ended, you'll need to start a paid subscription or confirm your may be able to access for free access as a student or open-source maintainer.

Keyboard Shortcuts for Copilot in VS Code

Learning these shortcuts will help you work with Copilot faster. Press Ctrl+Shift+X (Windows/Linux) or Cmd+Shift+X (Mac) to open the Extensions panel. Press Ctrl+I (Windows/Linux) or Cmd+I (Mac) to open inline chat while editing. Press Ctrl+L (Windows/Linux) or Cmd+L (Mac) inside the Copilot Chat panel to clear the conversation history.

You can also right-click on any code in your editor and select "Copilot" from the context menu to ask Copilot questions about that specific code. This is useful when you want Copilot to focus on a particular section rather than typing a question in chat.

Frequently Asked Questions

Do I need to pay for Copilot right away?

No. New users get a 30-day free trial when they first sign in. After the trial ends, you need a paid subscription unless you're a student or an open-source maintainer who qualifies for free access. Check your subscription status on GitHub.com under your account settings.

Can I use Copilot offline?

No. Copilot requires an active internet connection to work. It sends your code and questions to GitHub's servers for processing and sends back suggestions. If you lose your connection, Copilot will stop responding until you're back online.

What if I don't have a GitHub account?

You'll need to create one to use Copilot. Go to github.com and click "Sign up" to create a free account. It takes a few minutes and requires only an email address. Once your account is active, you can sign in to Copilot in VS Code.

Can I use Copilot in other code editors?

Yes. GitHub offers Copilot extensions for other editors including JetBrains IDEs, Neovim, and Visual Studio. Each editor has its own extension that you install separately. The setup process is similar to VS Code — install the extension, sign in with GitHub, and start using Copilot.

How do I turn off Copilot if I'm not using it?

You can disable the Copilot extension without uninstalling it. Open the Extensions panel, find GitHub Copilot, click the gear icon, and select "Disable". To turn it back on later, click the same gear icon and select "Enable". You can also uninstall it completely if you no longer want it.