Hi JIK THANGKVN,
Thank you for reaching out to Microsoft Q & A forum.
1.Ensure GitHub Copilot is enabled on your account:
Go to your GitHub profile and click on Settings.
Under Code, planning, and automation, click GitHub Copilot.
If you haven’t already, start a free trial to enable GitHub Copilot.
2.Add the GitHub Copilot extension to your Codespace:
Open your Codespace in the browser.
Navigate to the .devcontainer/devcontainer.json file in your repository.
In the extensions section of this file, add the following line to include GitHub Copilot:
"github.copilot"
Save the file, and a pop-up should appear asking if you want to rebuild the container. Click on Rebuild to apply the changes.
3.Verify the Installation:
After the rebuild, open the app.py file and start typing:
# write 'hello world' to the console
GitHub Copilot should automatically suggest the following code:
print('hello world')
Run the file by typing python app.py in the terminal. You should see the output hello world in the console.
4.For More Details:
For more information about setting up and using GitHub Copilot, refer to this link.
And big thanks to Marcin Policht for providing the initial guidance.
Please feel free to contact us if you have any additional questions.
If you have found the answer provided to be helpful, please click on the "Accept answer/Upvote" button so that it is useful for other members in the Microsoft Q&A community.
Thank you.