Skip to content

Commit 83c39ff

Browse files
authored
Merge pull request #47247 from lootle1/MR32
Technical Review 996543: Using advanced GitHub Copilot features
2 parents 1ace344 + 39c1dae commit 83c39ff

14 files changed

+58
-64
lines changed

learn-pr/github/advanced-github-copilot/1-introduction.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
description: GitHub Copilot is an AI pair programmer that offers autocomplete-style suggestions as you code in your text editor. You can use natural language to describe what you need, or ask GitHub Copilot interactive questions about coding and get meaningful answers.
77
author: abrilurena
88
ms.author: abrilu
9-
ms.date: 5/10/2024
9+
ms.date: 09/30/2024
1010
ms.topic: unit
1111
ms.collection:
1212
- ce-advocates-ai-copilot

learn-pr/github/advanced-github-copilot/2-advanced-github-copilot-features.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
description: GitHub Copilot is an AI-assisted coding tool that helps developers write better code, faster by generating suggestions using code, comments, and interactive chats.
88
author: abrilurena
99
ms.author: abrilu
10-
ms.date: 5/10/2024
10+
ms.date: 09/30/2024
1111
ms.topic: unit
1212
ms.collection:
1313
- ce-advocates-ai-copilot

learn-pr/github/advanced-github-copilot/3-exercise-setup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
description: Enable the GitHub Copilot service and install the extension in Visual Studio Code.
77
author: abrilurena
88
ms.author: abrilu
9-
ms.date: 5/10/2024
9+
ms.date: 09/30/2024
1010
ms.topic: unit
1111
ms.collection:
1212
- ce-advocates-ai-copilot

learn-pr/github/advanced-github-copilot/4-applied-copilot-techniques.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88
description: Use GitHub Copilot to update a Python project. Update the Python API and use GitHub Copilot to suggest additions for new endpoints.
99
author: abrilurena
1010
ms.author: abrilu
11-
ms.date: 5/10/2024
11+
ms.date: 09/30/2024
1212
ms.topic: unit
1313
ms.collection:
1414
- ce-advocates-ai-copilot

learn-pr/github/advanced-github-copilot/5-exercise-update-a-web-api.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88
description: Apply suggestions generated by GitHub Copilot to update a Python project using Visual Studio Code
99
author: abrilurena
1010
ms.author: abrilu
11-
ms.date: 5/10/2024
11+
ms.date: 09/30/2024
1212
ms.topic: unit
1313
ms.collection:
1414
- ce-advocates-ai-copilot

learn-pr/github/advanced-github-copilot/6-knowledge-check.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
description: Review advanced features in GitHub Copilot.
77
author: abrilurena
88
ms.author: abrilu
9-
ms.date: 5/10/2024
9+
ms.date: 09/30/2024
1010
ms.topic: unit
1111
ms.collection:
1212
- ce-advocates-ai-copilot
@@ -16,7 +16,7 @@ quiz:
1616
questions:
1717
- content: "What is ghost text in GitHub Copilot?"
1818
choices:
19-
- content: "Ghost text in GitHub Copilot are suggestions that appears in your text editor as you type."
19+
- content: "Ghost text in GitHub Copilot are suggestions that appear in your text editor as you type."
2020
isCorrect: true
2121
explanation: "That's correct! Ghost text refers to the suggestions given by GitHub Copilot without a prompt, based on your currently opened files. By accepting these suggestions with the Tab key or manually editing them, you can quickly write code and documentation for your project."
2222
- content: "Ghost text in GitHub Copilot are options used when typing to provide suggestions."
@@ -29,13 +29,13 @@ quiz:
2929
choices:
3030
- content: "Access the inline chat by clicking on the chat icon in the left sidebar of Visual Studio Code."
3131
isCorrect: false
32-
explanation: "Incorrect, although you can use this method to access GitHub Copilot's dedicated chat pane. The inline chat requires a keyboard shortcut (Ctrl+i for Windows or Command+i for mac) to open in your code context."
33-
- content: "Use Ctrl+i on Windows or Command+i on a mac to open the inline chat."
32+
explanation: "Incorrect, although you can use this method to access GitHub Copilot's dedicated chat pane. The inline chat requires a keyboard shortcut (Ctrl+i for Windows or Command+i for Mac) to open in your code context."
33+
- content: "Use Ctrl+i on Windows or Command+i on a Mac to open the inline chat."
3434
isCorrect: true
3535
explanation: "That's correct! By using the keyboard combination, you can access GitHub Copilot's inline chat without leaving your code context. This functionality enables efficient interaction with the tool and faster response times during development."
36-
- content: "Access the inline chat by using Alt+i on Windows or Option+i on a mac."
36+
- content: "Access the inline chat by using Alt+i on Windows or Option+i on a Mac."
3737
isCorrect: false
38-
explanation: "Incorrect, these aren't the correct keyboard shortcuts. You can access GitHub Copilot's inline chat using Ctrl+i for Windows and Command+i for mac instead."
38+
explanation: "Incorrect, these aren't the correct keyboard shortcuts. You can access GitHub Copilot's inline chat using Ctrl+i for Windows and Command+i for Mac instead."
3939
- content: "What are slash commands used for in GitHub Copilot?"
4040
choices:
4141
- content: "Slash commands are used to format your codebase according to best practices."
@@ -46,26 +46,26 @@ quiz:
4646
explanation: "Incorrect. Although GitHub Copilot may provide suggestions for fixing bugs, slash commands aren't specifically designed for debugging or finding security vulnerabilities in your projects."
4747
- content: "Slash commands are shortcuts to quickly solve common development tasks within the chat or inline pane."
4848
isCorrect: true
49-
explanation: "That's correct! Slash commands help you perform specific actions like writing tests and documentation faster by using predefined intents. You can access these slash command options in a drop-down menu after typing / in the chat or inline pane."
49+
explanation: "That's correct! Slash commands help you perform specific actions like writing tests and documentation faster by using predefined intents. You can access these slash command options in a drop-down menu after typing `/` in the chat or inline pane."
5050
- content: "What are the benefits of using agents like '@terminal' or '@workspace' when interacting with GitHub Copilot?"
5151
choices:
5252
- content: "Agents in Visual Studio Code help you ask questions within a specific context, allowing for more precise and relevant answers from GitHub Copilot."
5353
isCorrect: true
54-
explanation: "That's correct! Agents like '@terminal' or '@workspace' allow you to interact with GitHub Copilot in the context of your terminal or entire workspace. By using these agents, questions are more precise and relevant, helping you efficiently solve development tasks."
54+
explanation: "That's correct! Agents like '@terminal' or '@workspace' allow you to interact with GitHub Copilot in the context of your terminal or entire workspace. By using these agents, questions are more precise and relevant, which helps you efficiently solve development tasks."
5555
- content: "Agents help enforce a consistent code format based on best practices within Visual Studio Code for improved readability."
5656
isCorrect: false
5757
explanation: "Incorrect, agents don't specifically enforce formatting rules. They're used to interact with GitHub Copilot in the context of your terminal or workspace when asking questions and receiving answers."
5858
- content: "Agents provide extra security features for detecting vulnerabilities and intrusions within Visual Studio Code projects."
5959
isCorrect: false
60-
explanation: "Incorrect, agents don't specifically focus on providing security features. They're used to interact with GitHub Copilot in a specific context when asking questions related to development tasks."
60+
explanation: "Incorrect, agents don't specifically focus on providing security features. They're used to interacting with GitHub Copilot in a specific context when asking questions related to development tasks."
6161
- content: "What are the benefits of using implicit prompts with slash commands in inline chat for fixing code issues with GitHub Copilot?"
6262
choices:
6363
- content: "Implicit prompts help enforce a consistent naming convention and syntax based on best practices within Visual Studio Code projects for improved readability."
6464
isCorrect: false
6565
explanation: "Incorrect. Implicit prompts don't specifically focus on enforcing naming conventions or syntax rules. They're used to interact with GitHub Copilot in a way that can provide helpful responses without writing long, explicit prompts when fixing code issues."
6666
- content: "Implicit prompts help get better responses from GitHub Copilot without writing longer prompts, making it easier to interact and fix code issues."
6767
isCorrect: true
68-
explanation: "That's correct! Implicit prompts with slash commands in inline chat allow you for more straightforward interaction when fixing code. By using features like '/fix', GitHub Copilot can provide helpful responses even without detailed prompting, streamlining the development process."
68+
explanation: "That's correct! Implicit prompts with slash commands in inline chat allow you for more straightforward interaction when fixing code. By using features like '/fix', GitHub Copilot can provide helpful responses even without detailed prompting, which streamlines the development process."
6969
- content: "Implicit prompts help detect security vulnerabilities and potential malicious activities within Visual Studio Code projects for increased safety."
7070
isCorrect: false
7171
explanation: "Incorrect. Implicit prompts don't specifically focus on providing security features or detecting vulnerabilities in your projects. They're used to streamline interaction with GitHub Copilot when fixing code issues by using implicitly crafted prompts and slash commands."

learn-pr/github/advanced-github-copilot/7-summary.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
description: Review what you learned.
77
author: abrilurena
88
ms.author: abrilu
9-
ms.date: 5/10/2024
9+
ms.date: 09/30/2024
1010
ms.topic: unit
1111
ms.collection:
1212
- ce-advocates-ai-copilot

learn-pr/github/advanced-github-copilot/includes/1-introduction.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ GitHub Codespaces is a hosted developer environment operating in the cloud that
99

1010
As a developer, you want to be more productive typing code faster both for net new projects and existing ones. For this task, you want to use advanced features from an AI assistant that helps improve your developer workflows in code writing, documentation, testing, and more.
1111

12-
In this module, you'll understand how you can use advanced features of GitHub Copilot with applied examples modifying a repository using different techniques to add new HTTP API endpoints, write unit tests, and document existing code.
12+
In this module, you'll understand how you can use advanced features of GitHub Copilot with applied examples modifying a repository using different techniques to add new HTTP API (Application Programming Interface) endpoints, write unit tests, and document existing code.
1313

1414
## What will I learn?
1515

16-
By the conclusion of this module, you'll have acquired the skills to:
16+
By the conclusion of this module, you'll acquire the skills to:
1717

1818
- Work with a preconfigured GitHub repository in Codespaces with the GitHub Copilot extension.
19-
- Use interactive features of GitHub Copilot to generate useful suggestions for an existing project
19+
- Use interactive features of GitHub Copilot to generate useful suggestions for an existing project.
2020
- Apply advanced GitHub Copilot features to learn more about a new project, write documentation, and create unit tests.
2121

2222
## What is the main objective?
@@ -28,7 +28,7 @@ After successfully finishing this module, you'll be capable of using interactive
2828
Skills:
2929

3030
- Basic understanding of Python and text editors.
31-
- Basic comprehension of Git and GitHub Fundamentals and running basic `git` commands like `git add` and `git push`
31+
- Basic comprehension of Git and GitHub Fundamentals and running basic `git` commands like `git add` and `git push`.
3232

3333
Accounts:
3434

learn-pr/github/advanced-github-copilot/includes/2-advanced-github-copilot-features.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,30 @@ Often, when you work with code, you need to review the project's documentation i
33

44
## The basics
55

6-
When GitHub Copilot is enabled, it provides you with suggestions. These suggestions are called ghost text, and you can either ignore the ghost text or accept it by pressing the Tab key. The suggestions don't require a prompt because GitHub Copilot uses by default the files you have open as context. However, you can provide a prompt using a comment, using the chat window, or using the inline chat within your code.
6+
When GitHub Copilot is enabled, it provides you with suggestions. These suggestions are called ghost text. You can either ignore the ghost text, or accept it by pressing the **Tab** key. The suggestions don't require a prompt because by default GitHub Copilot uses the files you have open as context. However, you can provide a prompt using a comment, the chat window, or the inline chat within your code.
77

88
## Chatting with GitHub Copilot
99

10-
GitHub Copilot allows you to have an interactive discussion using the chat feature. In Visual Studio Code, you can click the chat icon on the left sidebar, which will open the chat interface in a dedicate pane.
10+
GitHub Copilot allows you to have an interactive discussion using the chat feature. In Visual Studio Code, you can click the chat icon on the left sidebar, which opens the chat interface in a dedicated pane.
1111

12-
In this pane, you can ask questions about the code you're currently working on, or other software-related questions.
12+
In this pane, you can ask questions about the code you're currently working on or other software-related questions.
1313

1414
## Using inline chat
1515

16-
Besides the dedicated chat pane, you can use the inline chat, which allows you to interact with GitHub Copilot without leaving your code.
16+
Besides the dedicated chat pane, you can use the inline chat. It allows you to interact with GitHub Copilot without leaving your code.
1717

18-
Access the inline chat by using Ctrl+i on Windows or Command+i on a mac. One of the benefits of using the inline chat is that you don't have to switch context by going to a different pane. The suggestions and interactions happen closer to the code.
18+
Access the inline chat by using **Ctrl+i** on Windows or **Command+i** on a Mac. One of the benefits of using the inline chat is that you don't have to switch context by going to a different pane. The suggestions and interactions happen closer to the code.
1919

2020
## Slash commands
2121

22-
Within the chat pane or when using the inline chat, you can use slash commands. These commands allow GitHub Copilot to use a specific intent for quickly solving common development tasks.
22+
Within the chat pane or when using the inline chat, you can use slash commands. These commands allow GitHub Copilot to use a specific intent for quickly solving common development tasks.
2323

24-
If you type a forward slash in the chat pane or in inline chat, you should see a drop-down menu with all the slash commands available. For example the `/tests` slash command helps you write tests, while the `/docs` command is intended for writing documentation.
24+
If you type a forward slash in the chat pane or inline chat, you should see a drop-down menu with all the slash commands available. For example, the `/tests` slash command helps you write tests, while the `/docs` command is intended for writing documentation.
2525

2626
Using specific slash commands to create a question is a good way to get better responses without having to write longer prompts.
2727

2828
## Agents
2929

30-
Visual Studio Code has a feature called "agents" that allows you to interact with GitHub Copilot. These agents allow you to ask questions using a specific context. For example the `@terminal` agent helps you chat with GitHub Copilot to interact with the terminal.
30+
Visual Studio Code has a feature called *agents* that allows you to interact with GitHub Copilot. These agents allow you to ask questions using a specific context. For example the `@terminal` agent helps you chat with GitHub Copilot to interact with the terminal.
3131

32-
Another agent is `@workspace` which is aware of your entire workspace, allowing you to ask questions about the entire project. To use an agent, prefix your question with the agent, for example: `@workspace how can I package this project?`.
32+
Another agent is `@workspace`, which is aware of your entire workspace. It allows you to ask questions about the entire project. To use an agent, prefix your question with the agent, for example: `@workspace how can I package this project?`.

learn-pr/github/advanced-github-copilot/includes/3-exercise-setup.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ In this exercise, we create a new repository using the GitHub template for a web
66
First you need to launch the Codespaces environment, which comes preconfigured with the GitHub Copilot extension.
77

88
1. Open the [Codespace with the preconfigured environment](https://codespaces.new/MicrosoftDocs/mslearn-advanced-copilot?azure-portal=true) in your browser.
9-
1. On the **Create codespace** page, review the codespace configuration settings and then select **Create new codespace**
10-
1. Wait for the codespace to start. This startup process can take a few minutes.
9+
1. On the **Create codespace** page, review the Codespace configuration settings, and then select **Create new codespace**.
10+
1. Wait for the Codespace to start. This startup process can take a few minutes.
1111
1. The remaining exercises in this project take place in the context of this development container.
1212

1313
> [!IMPORTANT]
@@ -17,15 +17,11 @@ First you need to launch the Codespaces environment, which comes preconfigured w
1717

1818
When complete, Codespaces loads with a terminal section at the bottom. Codespaces installs all the required extensions in your container. Once the package installs are completed, Codespaces will execute the `uvicorn` command to start your web application running within your Codespace.
1919

20-
When the web application has successfully started, a message in the terminal shows that the server is running on port 8000 within your Codespace.
21-
22-
### Testing the API
23-
24-
Try to interact with the API by sending a request using the self-documented page. Select the POST button and then on the Try it Out button:
20+
When the web application has successfully started, a message in the terminal **Ports** tab shows that the server is running on port 8000 within your Codespace.
2521

2622
## Sign up for GitHub Copilot
2723

2824
If you haven't already, you need to register by setting up [a free trial or subscription for your account](https://github.com/github-copilot/signup).
2925

3026
>[!Note]
31-
> Educators, Students and select open-source maintainers can sign up for Copilot for free, learn how at: https://aka.ms/Copilot4Students
27+
> Educators, Students and select open-source maintainers can sign up for Copilot for free, learn how at [Setting up GitHub Student and GitHub Copilot as an Authenticated Student Developer](https://aka.ms/Copilot4Students).

0 commit comments

Comments
 (0)