Getting Started with GitHub Copilot Chat in VSCode #64517
-
Here's how to start using GitHub Copilot Chat in VSCodeGitHub Copilot Chat is an extension that works in your Code Editor or IDE (VS Code or Visual Studio currently) that allows you to have conversations with GitHub Copilot right from your editor.You're able to get code suggestions, build, debug and tests applications with an AI model that understands natural language right from your editor. To get started using GitHub Copilot Chat in VSCode, ensure that you have access to the extension by checking your email for access privileges. You get access privileges through your organization or by being taken off the waitlist for the private beta for individuals. You also need to ensure that you have an active GitHub Copilot subscription. To verify your access, click on your GitHub profile and select "Try Copilot." If you have access to GitHub Copilot, you will see a message at the top of your settings page indicating such and if you don't have access, you will be routed to another page to start your 30-day free trial.
Installing GitHub Copilot Chat & asking your first questionOnce you verify those details, follow the steps below to start using GitHub Copilot Chat:
GitHub-Copilot-Chat-Installing_1.mp4Be sure to sign in to the GitHub account that has access to your GitHub Copilot subscription and also that has access to Copilot Chat.
You can start by asking a simple question like "How do I set up a new ruby project?" and it will provide you with a suggestion. copilot-chat-ruby.mp4And that's how you start using copilot chat in VSCode. Slash Commands + GitHub Copilot ChatThere are some really amazing slash commands that you have access to as well that makes it easier to ask for help, create vscode extensions or create unit tests. To start using Slash Commands with GitHub Copilot, type Choose one of the options and then ask a question to get a suggestion. Asking GitHub Copilot Chat questions about your codeTo ask Copilot Chat specific questions about the code you're working on, open up the file in your editor, and navigate to the chat extension. Let's say for example this is your first time interacting with this particular repository, and you don't quite understand the code, you can ask copilot chat "what does this file mean?" and it will provide a suggested explanation of what the code is doing. copilot-chat-explain-my-code.mp4Using Code Suggestions from GitHub Copilot ChatWhenever you ask copilot chat for code suggestions, you can accept them by copying the suggestion from the chat interface or clicking the "Insert at Cursor" button. You can also insert the suggestion into a new file, or run the code in the terminal if applicable. copilot-chat-accept-suggestions.mp4I was able to use GitHub Copilot Chat to tell me how to insert two images side by side using markdown Opening a Copilot Chat session in your editorTo make your life a little easier, we've made it possible to open up a copilot chat session right in your editor, so you don't have to go back and forth between the chat interface and your files. To do this, click on the chat icon on the side, and click the three dots at the top and select "Open session in editor" this will move the chat into your editor, similar to how a file would be open. copilot-chat-editor.mp4If you have any issues, questions, comments or concerns, feel free to leave them below and I'll try as best as possible to get you an answer! I hope you enjoy using GitHub copilot Chat as much as I do! Happy Coding! |
Beta Was this translation helpful? Give feedback.
Replies: 17 comments 10 replies
This comment was marked as spam.
This comment was marked as spam.
-
I found out that if I am a member of the licensed group of copilot users in two different (enterprise) organisations (prod and test) that both allow Copilot usage, but only one of the two allows copilot chat (the test org), then I will not get the chat icon in Visual Studio Code. Any ideas on how I can make it work for the two organisation situation (i.e. I need a group of testers who have "normal" access to copilot through the prod org and temporary access to chat through the test org)? Appreciate your help. |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
@LadyKerr - typically how long will an individual wait for copilot for VSC ? |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Hello, |
Beta Was this translation helpful? Give feedback.
This comment has been minimized.
This comment has been minimized.
-
Hi, I've build up a whole bunch of responses from Copilot, some of which I intended going back to as it triggered ideas that I wanted to follow up on. |
Beta Was this translation helpful? Give feedback.
-
Why there is no command in the VS code as |
Beta Was this translation helpful? Give feedback.
I solved it. There was an update on VS Code Insiders and it wasn't compatible with Copilot Chat.
I went back to the original VS Code, updated it and then the chat worked.