Using GitHub Copilot Chat in vscode

1. What is Github Copilot Chat?

GitHub Copilot ChatOpenAIPowered 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 Copilotsubscription
  • Visual Studio CodeLatest version installed
  • Must log in with the same ID that you have GitHub Copilotaccess to Use the Account button in the lower left corner to log inGitHub IDVisual Studio Code
    VSCode
    Insert image description here

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.
Insert image description here
Entering in the input box /helpwill answer how you use it
as follows:
Insert image description here

The Chinese translation is as follows:
Insert image description here
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 :
Insert image description here

2. Inline functions

Press ctrl + ito enable the inline function in the workspace, as follows:

Insert image description here
You can ask questions here based on your needs, and he will generate code, such as:
Insert image description here

You just choose to accept it or give it up.

Guess you like

Origin blog.csdn.net/jieyucx/article/details/135193089