You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: learn-pr/github/advanced-github-copilot/1-introduction.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ metadata:
6
6
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.
Copy file name to clipboardExpand all lines: learn-pr/github/advanced-github-copilot/2-advanced-github-copilot-features.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ metadata:
7
7
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.
Copy file name to clipboardExpand all lines: learn-pr/github/advanced-github-copilot/6-knowledge-check.yml
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ metadata:
6
6
description: Review advanced features in GitHub Copilot.
7
7
author: abrilurena
8
8
ms.author: abrilu
9
-
ms.date: 5/10/2024
9
+
ms.date: 09/30/2024
10
10
ms.topic: unit
11
11
ms.collection:
12
12
- ce-advocates-ai-copilot
@@ -16,7 +16,7 @@ quiz:
16
16
questions:
17
17
- content: "What is ghost text in GitHub Copilot?"
18
18
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."
20
20
isCorrect: true
21
21
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."
22
22
- content: "Ghost text in GitHub Copilot are options used when typing to provide suggestions."
@@ -29,13 +29,13 @@ quiz:
29
29
choices:
30
30
- content: "Access the inline chat by clicking on the chat icon in the left sidebar of Visual Studio Code."
31
31
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."
34
34
isCorrect: true
35
35
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."
37
37
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."
39
39
- content: "What are slash commands used for in GitHub Copilot?"
40
40
choices:
41
41
- content: "Slash commands are used to format your codebase according to best practices."
@@ -46,26 +46,26 @@ quiz:
46
46
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."
47
47
- content: "Slash commands are shortcuts to quickly solve common development tasks within the chat or inline pane."
48
48
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."
50
50
- content: "What are the benefits of using agents like '@terminal' or '@workspace' when interacting with GitHub Copilot?"
51
51
choices:
52
52
- content: "Agents in Visual Studio Code help you ask questions within a specific context, allowing for more precise and relevant answers from GitHub Copilot."
53
53
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."
55
55
- content: "Agents help enforce a consistent code format based on best practices within Visual Studio Code for improved readability."
56
56
isCorrect: false
57
57
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."
58
58
- content: "Agents provide extra security features for detecting vulnerabilities and intrusions within Visual Studio Code projects."
59
59
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."
61
61
- content: "What are the benefits of using implicit prompts with slash commands in inline chat for fixing code issues with GitHub Copilot?"
62
62
choices:
63
63
- content: "Implicit prompts help enforce a consistent naming convention and syntax based on best practices within Visual Studio Code projects for improved readability."
64
64
isCorrect: false
65
65
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."
66
66
- content: "Implicit prompts help get better responses from GitHub Copilot without writing longer prompts, making it easier to interact and fix code issues."
67
67
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."
69
69
- content: "Implicit prompts help detect security vulnerabilities and potential malicious activities within Visual Studio Code projects for increased safety."
70
70
isCorrect: false
71
71
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."
Copy file name to clipboardExpand all lines: learn-pr/github/advanced-github-copilot/includes/1-introduction.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,14 +9,14 @@ GitHub Codespaces is a hosted developer environment operating in the cloud that
9
9
10
10
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.
11
11
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.
13
13
14
14
## What will I learn?
15
15
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:
17
17
18
18
- 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.
20
20
- Apply advanced GitHub Copilot features to learn more about a new project, write documentation, and create unit tests.
21
21
22
22
## What is the main objective?
@@ -28,7 +28,7 @@ After successfully finishing this module, you'll be capable of using interactive
28
28
Skills:
29
29
30
30
- 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`.
Copy file name to clipboardExpand all lines: learn-pr/github/advanced-github-copilot/includes/2-advanced-github-copilot-features.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,30 +3,30 @@ Often, when you work with code, you need to review the project's documentation i
3
3
4
4
## The basics
5
5
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.
7
7
8
8
## Chatting with GitHub Copilot
9
9
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.
11
11
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.
13
13
14
14
## Using inline chat
15
15
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.
17
17
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.
19
19
20
20
## Slash commands
21
21
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.
23
23
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.
25
25
26
26
Using specific slash commands to create a question is a good way to get better responses without having to write longer prompts.
27
27
28
28
## Agents
29
29
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.
31
31
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?`.
Copy file name to clipboardExpand all lines: learn-pr/github/advanced-github-copilot/includes/3-exercise-setup.md
+4-8Lines changed: 4 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,8 @@ In this exercise, we create a new repository using the GitHub template for a web
6
6
First you need to launch the Codespaces environment, which comes preconfigured with the GitHub Copilot extension.
7
7
8
8
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.
11
11
1. The remaining exercises in this project take place in the context of this development container.
12
12
13
13
> [!IMPORTANT]
@@ -17,15 +17,11 @@ First you need to launch the Codespaces environment, which comes preconfigured w
17
17
18
18
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.
19
19
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.
25
21
26
22
## Sign up for GitHub Copilot
27
23
28
24
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).
29
25
30
26
>[!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