Article directory
1. What is Github Copilot Chat?
GitHub Copilot Chat
OpenAI
Powered by GPT-4
a large multi-modal model, it leads to more accurate code suggestions, explanations and guidance. GitHub Copilot Chat
's inline feature helps developers chat about specific lines of code
2. Installation and use
Just search for GitHub Copilot Chat in the application market and install it.
Installation conditions:
- a valid
GitHub Copilot
subscription Visual Studio Code
Latest version installed- Must log in with the same ID that you have
GitHub Copilot
access to Use the Account button in the lower left corner to log inGitHub ID
Visual Studio Code
VSCode
3. How to use
After the installation is successful, there is a chat logo on the left sidebar of vscode. This is Github copilot chat.
Entering in the input box /help
will answer how you use it
as follows:
The Chinese translation is as follows:
These shortcut commands are similar to the extensions provided by github copilot labs. After selecting the code, enter the command and it will perform the corresponding operation. I won’t demonstrate it here. If you are interested, you can read this introduction to common functions of Github Copilot Labs.
Here we mainly introduce the chat function and inline function of chat
1. Chat function
Its chat function is the same as chatgpt. You can ask all programming-related questions and it will answer them.
for example :
2. Inline functions
Press ctrl + i
to enable the inline function in the workspace, as follows:
You can ask questions here based on your needs, and he will generate code, such as:
You just choose to accept it or give it up.