Introduction
GitHub Copilot provides coding suggestions as you type in your editor. You can also ask Copilot coding-related questions, such as how best to code something, how to fix a bug, or how someone else's code works. For full details of what Copilot can do, see What is GitHub Copilot?.
Instructions for using Copilot differ depending on where you are using it. This version of the quickstart is for Windows Terminal. Click the tabs above for instructions on using Copilot in other environments.
Sign up for GitHub Copilot
If you don't already have access to GitHub Copilot, you can set up a free trial or subscription for Copilot Pro on your personal GitHub account.
Alternatively, you can set up Copilot Free which enables you to enjoy limited access to some of the features of Copilot, without needing to sign up for a subscription. See About GitHub Copilot Free.
For more information about the different plans for GitHub Copilot, see Subscription plans for GitHub Copilot.
Prerequisites
- Windows Terminal Canary. Terminal Chat is only available in Windows Terminal Canary.
Use Copilot in Terminal Chat
After you've installed Windows Terminal Canary, you can use Copilot in Terminal Chat to ask command line-related questions.
-
Open Settings from the dropdown menu.
-
Go to the Terminal Chat (Experimental) setting.
-
Under Service Providers, select GitHub Copilot and Authenticate via GitHub to sign in.
Chat with GitHub Copilot
Note
If you have access to GitHub Copilot via your organization, you won't be able to use GitHub Copilot in Windows Terminal if your organization owner has disabled GitHub Copilot in the CLI. See Managing policies for Copilot in your organization.
-
Open Terminal Chat (Experimental) in the dropdown menu.
-
In the Terminal Chat chat window, type
how do i list all markdown files in my directory
then press Enter.Copilot's answer is displayed below your question.
-
Click on an answer to insert it to the command line.
Next steps
- Find out more about Copilot code completion - See Getting code suggestions in your IDE with GitHub Copilot.
- Find out more about GitHub Copilot Chat - See Asking GitHub Copilot questions in your IDE.
- Learn how to write effective prompts - See Prompt engineering for Copilot Chat.
- Use Copilot on your mobile device - See Asking GitHub Copilot questions in GitHub Mobile.
- Use Copilot on the command line - See Using GitHub Copilot in the command line.
- Configure Copilot in your editor - You can enable or disable GitHub Copilot from within your editor, and create your own preferred keyboard shortcuts for Copilot. See Configuring GitHub Copilot in your environment.