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: 04-Using-GitHub-Copilot-with-CSharp/README.md
+20-3Lines changed: 20 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -45,12 +45,28 @@ The "**GitHub Codespaces ♥️ .NET**" repository builds a Weather API using Mi
45
45
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.
46
46
47
47
48
-
### 🗒️ Step 1: Get familiarized with the "GitHub Codespaces ♥️ .NET" repository
48
+
### 🤔 Step 0: Get familiarized with the "GitHub Codespaces ♥️ .NET" repository
49
49
50
50
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.
51
51
52
52

53
53
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
+

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
+
54
70
In order to run the BackEnd project, go to the "Run and Debug" panel, and select the "BackEnd" Project.
55
71
56
72

@@ -82,7 +98,6 @@ Pressing F10 we can debug step-by-step until line 32, where we can see the gener
82
98
83
99
You can stop debugging now.
84
100
85
-
86
101
Congratulations! Now you are ready to add more features into the app using GitHub Copilot.
87
102
88
103
### 🗒️ 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.
95
110
96
111

97
112
98
-
99
113
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:
100
114
101
115
```
@@ -218,6 +232,9 @@ Both tests running should be like these ones:
218
232
219
233
🚀 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.
220
234
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.
0 commit comments