Skip to content

Commit 2188e42

Browse files
add chat
1 parent 313f44e commit 2188e42

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

04-Using-GitHub-Copilot-with-CSharp/README.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,28 @@ The "**GitHub Codespaces ♥️ .NET**" repository builds a Weather API using Mi
4545
We will review the steps to update the Weather BackEnd App by adding a new endpoint that requests a specific location and returns the weather forecast for that location.
4646

4747

48-
### 🗒️ Step 1: Get familiarized with the "GitHub Codespaces ♥️ .NET" repository
48+
### 🤔 Step 0: Get familiarized with the "GitHub Codespaces ♥️ .NET" repository
4949

5050
Once you open the repository in Codespaces, you will find a new browser window with a fully functional Codespace. Everything in this repository is contained within this one Codespace. In example, in the explorer panel, we can see the main code for the BackEnd and the FrontEnd project.
5151

5252
![new Codespace with all the repository running](./images/005OpenRepoInCodeSpaces.png)
5353

54+
Before we run the project, let's use GitHub Copilot Chat to inquire about what the project is and the different components.
55+
56+
1. Open **GitHub Copilot Chat** from the main navigation bar.
57+
1. Type in `What is this project doing, and what are the key components?` and hit **Send***
58+
59+
GitHub Copilot Chat will now look at the entire project and give us a summary of what the projects do, what technology they use, and any of the key components in them.
60+
61+
![Copilot Chat describing the project](./images/004AskCopilotAboutProject.png)
62+
63+
From here, you can click on files to navigate to them and you can ask follow up questions such as `What APIs are available?`.
64+
65+
66+
### 🚀 Step 1: Run the projects
67+
68+
Now that we have have context of what is in the project, let's run it and see it in action.
69+
5470
In order to run the BackEnd project, go to the "Run and Debug" panel, and select the "BackEnd" Project.
5571

5672
![open program.cs in the BackEnd project](./images/006RunBackEndProject.png)
@@ -82,7 +98,6 @@ Pressing F10 we can debug step-by-step until line 32, where we can see the gener
8298

8399
You can stop debugging now.
84100

85-
86101
Congratulations! Now you are ready to add more features into the app using GitHub Copilot.
87102

88103
### 🗒️ Step 2: Get familiarized with GitHub Copilot Slash Commands
@@ -95,7 +110,6 @@ Now let's use a slash command, in GitHub Copilot to understand a piece of code.
95110

96111
![Use slash command to explain a piece of code](./images/011SlashCommandExplain.gif)
97112

98-
99113
Based on your version of GitHub Copilot you will see either an inline response or an update in the Chat Panel. GitHub Copilot will create a detailed explanation of the selected code. A summarized version will be like this one:
100114

101115
```
@@ -218,6 +232,9 @@ Both tests running should be like these ones:
218232

219233
🚀 Congratulations, through the exercise, you haven't only used GitHub Copilot to generate code but also done it in an interactive and fun way! You can use GitHub Copilot to not only generate code, but write documentation, test your applications and more.
220234

235+
### ✨ Bonus: Add new capabilities with GitHub Copilot Edits
236+
237+
Let's use **Copilot Edits** to start an AI-powered code editing session and iterate quickly on code changes across multiple files by using natural language. Copilot Edits applies the edits directly in the editor, where you can review them in-place, with the full context of the surrounding code.
221238

222239
## Legal Notices
223240

04-Using-GitHub-Copilot-with-CSharp/images/test.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)