Skip to content

Commit 435f3df

Browse files
committed
updating sections text
1 parent bb58945 commit 435f3df

File tree

1 file changed

+21
-14
lines changed

1 file changed

+21
-14
lines changed

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

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ TODO: show output
106106
TODO: Can't get recording of next edits on this file :(
107107

108108
In the above exercises we achieved the following:
109-
Generated suggestions from code comments
110-
Used inline chat and slash to generate new code, query code and accept coding suggestions
111-
Trigger and refine Copilot suggestions
109+
- Generated suggestions from code comments
110+
- Used inline chat and slash to generate new code, query code and accept coding suggestions
111+
- Trigger and refine Copilot suggestions
112112

113113

114114
### 📄Section 2: GitHub Copilot Agent Mode
@@ -117,7 +117,8 @@ In the above exercises we achieved the following:
117117
- Observe autonomous coding and PR generation
118118
- Assign issues to the Copilot coding agent
119119

120-
GitHub Copilot Agent Mode is an autonomous coding assistant that acts as a synchronous collaborator in real-time. It can perform coding tasks that require multiple steps all while using your natural language prompts. When working in Agent Mode, Copilot can problem solve alongside you, understanding your intent, and when the built solution needs some tweaking, it can iterate until it gets it right. In this section we're going to use Agent Mode to make a multitude of changes to our backend service to provide several improvement to our code.
120+
121+
[GitHub Copilot Agent Mode](https://github.blog/ai-and-ml/github-copilot/agent-mode-101-all-about-github-copilots-powerful-mode/) is an autonomous AI coding assistant that acts as a synchronous collaborator in real-time. It can perform coding tasks that require multiple steps all while using your natural language prompts. When working in Agent Mode, Copilot can problem solve alongside you, understanding your intent, and when the built solution needs some tweaking, it can iterate until it gets it right. In this section we're going to use Agent Mode to make a multitude of changes to our backend service to provide several improvement to our code.
121122
122123
1. Open GitHub Copilot Chat. Notice in the text box you can 'add context', which allows you to attach files, folders and other items to the context of Copilot so that it can better understand your codebase. Agent mode should be selected by default. This is also the capability to choose your model as well. Also note, the open tab 'program.cs' is being referenced for context.
123124

@@ -131,8 +132,10 @@ GitHub Copilot Agent Mode is an autonomous coding assistant that acts as a synch
131132
5. Write documentation for every change
132133
6. Write tests using xUnit, verify error handling works correctly.
133134
```
134-
Agent mode performed the following summary of changes
135135

136+
Agent mode performed and outputted the following summary of changes:
137+
138+
```
136139
**Customer Endpoint Implementation**
137140
- Created a RESTful API for Customer with proper CRUD operations
138141
- Added appropriate status codes and validation
@@ -158,28 +161,32 @@ Agent mode performed the following summary of changes
158161
**Documentation**
159162
- Created detailed documentation for all APIs, models, and services
160163
- Included response types and error handling details
164+
```
161165

162-
Agent Mode confirmed that all tests are passing and that the application follows modern ASP.NET best practices with a focus on separation of concerns and test coverage.
163-
164-
Agent Mode was able to perform C# specific tasks:
165-
- Moving from inline route handlers to controller-based architecture
166-
- Adding proper model validation
167-
- Implementing comprehensive error handling
168-
- Setting up dependency injection for better testability
169-
- Creating an organized project structure
166+
Agent Mode confirmed that all tests are passing and that the application follows modern ASP.NET best practices with a focus on separation of concerns and test coverage.
170167

171-
Finally, verify that the changes and new endpoint is working by starting the BackEnd project from the 'Run and Debug' panel. Once the project is running, test the original URL using your Codespace URL and original endpoint:
168+
3. Finally, verify that the changes and new endpoint is working by starting the BackEnd project from the 'Run and Debug' panel. Once the project is running, test the original URL using your Codespace URL and original endpoint:
172169

173170
```bash
174171
https://< your code space url >.app.github.dev/WeatherForecast
175172
```
176173

177174
🚀Congratulations! Now you understand the power behind Agent Mode and the many tasks that it can help with. Scroll down to the next section that will show you how to add context and customization to Copilot.
178175

176+
Agent Mode was able to perform C# specific tasks:
177+
- ✅ Moving from inline route handlers to controller-based architecture
178+
- ✅ Adding proper model validation
179+
- ✅ Implementing comprehensive error handling
180+
- ✅ Setting up dependency injection for better testability
181+
- ✅ Creating an organized project structure
182+
-
179183
### 🗒️ Section 3: Customization and Context
180184

181185
TODO
182186

187+
### Useful Links and Further Learning
188+
- [Use agent mode in VS Code](https://code.visualstudio.com/docs/copilot/chat/chat-agent-mode)
189+
183190
## Legal Notices
184191

185192
Microsoft and any contributors grant you a license to the Microsoft documentation and other content

0 commit comments

Comments
 (0)