Skip to content

Commit 9fafef1

Browse files
additional cleanup
1 parent 0cb9275 commit 9fafef1

9 files changed

Lines changed: 21 additions & 35 deletions

lab/part0-exploring-codebase.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ GitHub Copilot Chat allows you to ask questions about your code and get intellig
77
![Open chat window dialog](./images/1-open-copilot-chat.png)
88
1. [] Try asking questions about the project structure:
99
- `What projects are in this solution and how do things work together?`
10-
- `What is the TinyShop application architecture?`
1110
- `How does the Products API work?`
1211
1. [] Notice how Copilot analyzes your codebase to provide contextual answers.
1312

lab/part1-code-completion.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ In this section, you'll use GitHub Copilot's code completion to implement API en
2525
![NES showing up](./images/1-nes.png)
2626

2727
1. [] We now can implement the following endpoints using GitHub Copilot:
28-
- GET product by ID
2928
- POST to create a new product
3029
- PUT to update a product
3130
- DELETE to remove a product
@@ -160,8 +159,7 @@ In this section, you'll use GitHub Copilot's code completion to implement API en
160159
}
161160
```
162161

163-
> [!IMPORTANT]
164-
>Because LLMs are probabilistic, not deterministic, the exact code generated can vary. The above is a representative example. If your code is different, that's just fine as long as it works!
162+
> NOTE: Because LLMs are probabilistic, not deterministic, the exact code generated can vary. The above is a representative example. If your code is different, that's just fine as long as it works!
165163
166164
1. [] Go back to **ProductEndpoints.cs**, and try changing the variable name of **id** to `productId` in the new **MapGet** method and see Next Edit Suggestions help out.
167165

lab/part2-enhancing-ui.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22

33
Now, you'll improve the loading experience using Copilot's inline chat.
44

5-
> [!NOTE]
6-
> This exercise does supply specific prompts to type, but as part of the learning experience we encourage you to discover how to interact with Copilot. Feel free to talk in natural language, describing what you're looking for or need to accomplish.
5+
> NOTE: This exercise does supply specific prompts to type, but as part of the learning experience we encourage you to discover how to interact with Copilot. Feel free to talk in natural language, describing what you're looking for or need to accomplish.
76
87
1. [] In the **Solution explorer** under the **Store** project open **Components/Pages/Products.razor**.
98
1. [] Find the "Loading..." text in the code.
109
1. [] Select this text and right-click.
1110
1. [] Choose "Ask Copilot" or press `Alt+/`.
12-
1. [] In the inline chat, type: "Update this to have a loading progress spinner and the text: Loading... under it"
11+
1. [] In the inline chat, type: `Update this to have a loading progress spinner`
1312

1413
![Screenshot of VS with inline chat](./images/2-inline-code.png)
1514

lab/part3-referencing-files.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ In this section, you'll learn how to reference existing code files in your chat
1818
1. [] Type: `#ProductService.cs` to reference the ProductService file.
1919
1. [] Ask: `How would I implement getting and visualizing the products in a table using the code in #ProductService and the css required.`
2020
1. [] Review the code suggestion but don't implement it yet.
21-
1. [] Follow up with: `How would this look in a grid instead of a list?`
2221
1. [] Notice how Copilot can reference existing code to provide contextual suggestions.
2322

2423
**Key Takeaway**: Referencing files in your chat provides Copilot with the context it needs to give more accurate, project-specific suggestions.

lab/part4-custom-instructions.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ Here are some guidelines to consider when creating a Copilot instructions file:
2121

2222
## Create a Copilot instructions file
2323

24-
1. [] In the **Solution Explorer**, expand the **Solution Items** and open **copilot-instructions.mc**.
25-
> This file is located in the **.github* folder in the root of the repository.
24+
1. [] In the **Solution Explorer**, expand the **Solution Items** and open **copilot-instructions.md**
25+
2626
1. [] Add project-specific information about your application:
2727

2828
```markdown
@@ -43,9 +43,8 @@ Here are some guidelines to consider when creating a Copilot instructions file:
4343
![New chat](./images/5-new-edits.png)
4444

4545
1. [] Go back to Copilot Chat and re-run the prompt from Part 3, you can do this by pressing the up key. or
46-
i. [] Ask: `How would I implement getting and visualizing the products in a table using the code in #ProductService and the css required.`
47-
i. [] Review the code suggestion but don't implement it yet.
48-
i. [] Follow up with: `How would this look in a grid instead of a list?`
46+
1. [] Ask: `How would I implement getting and visualizing the products in a table using the code in #ProductService and the css required.`
47+
1. [] Review the code suggestion but don't implement it yet.
4948
1. [] Notice how the responses now incorporate your custom instructions.
5049

5150
**Key Takeaway**: Custom instructions make Copilot's suggestions more aligned with your project standards and architecture preferences.

lab/part5-implementing-features.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,11 @@ Let's add the ability to see a list of images into the app:
2020

2121
![Select Sonnet in Copilot](./images/5-select-sonnet.png)
2222

23-
1. [] Type: `Implement a product listing page in Products.razor that fetches products from #ProductService and displays them in a list with product name, description, price, and image.`
23+
1. [] Type: `Implement a simple product listing page in Products.razor that fetches products from #ProductService and displays them in a simple list with product name, description, price, and image.`
2424

25-
> [!NOTE]
26-
> You should use your own phrasing when generating the prompt. As highlighted previously, part of the exercise is to become comfortable creating prompts for GitHub Copilot. One key tip is it's always good to provide more guidance to ensure you get the code you are looking for.
25+
> NOTE: You should use your own phrasing when generating the prompt. As highlighted previously, part of the exercise is to become comfortable creating prompts for GitHub Copilot. One key tip is it's always good to provide more guidance to ensure you get the code you are looking for.
2726
28-
> [!NOTE]
29-
> If you are asked to **Enable Claude 3.5 Sonnet for all clients** click on **Enable** button.
27+
> NOTE: If you are asked to **Enable Claude 3.5 Sonnet for all clients** click on **Enable** button.
3028
3129
Copilot agent mode begins implementing the code suggestions!
3230

@@ -36,7 +34,7 @@ Unlike our prior examples where we worked with an individual file, we're now wor
3634

3735
GitHub Copilot will propose the following changes to the application including updating the Products.razor and adding a Products.razor.css and maybe more.
3836

39-
1. [] Review the suggestions and click "Accept All" to implement the code.
37+
1. [] Review the code changes from Agent mode
4038

4139
The code should look similar to the following:
4240
```html

lab/part6-copilot-vision.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
In this section, you'll use Copilot Vision. You can share screenshots of errors and Copilot will interpret the image and resolve the issue. Or share mockups of new designs, and Vision will help you bring them to life. Let's update our design based on a photo our design gave us.
44

55
1. [] Open a new Copilot Chat thread in Agent mode.
6-
1. [] Click the **+** button in the chat, select **upload image**, and select the store application image that is found in the GitHub repo that is cloned called **eshop.png** inside of the **C:\Users\LabUser\Source\Repos\build-2025-lab300** directory.
6+
1. [] Click the **+** button in the chat, select **upload image**, and select the store application image that is found in the GitHub repo that is cloned called **eshop.png** inside of the `C:\Users\LabUser\Source\Repos\build-2025-lab300` directory.
77

88
![Attach image icon](./images/6-add-image.png)
99

lab/part7-debugging-with-copilot.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@
22

33
In this section, you'll learn how to use Copilot to debug an exception in your application.
44

5-
1. Launch the web application if it isn't yet
6-
1. Click on the **Go to About** button in the navigation menu.
7-
1. Observe that an exception occurs, and the application crashes.
8-
1. Press the **Ask Copilot** option in the pop up.
5+
1. [] Debug the **AppHost** project if it isn't yet, and open the **store** from teh .NET Aspire dashboard.
6+
1. [] Click on the **Go to About** button in the navigation menu.
7+
1. [] Observe that an exception occurs, and the application crashes.
8+
1. [] Press the **Ask Copilot** option in the pop up.
99

1010
![Pop up for exception with Ask Copilot option](./images/7-ask-copilot-exception.png)
1111

12-
1. Review how Copilot brings in debugger information, including stack traces and variable states.
13-
1. Note how Copilot recommends a fix for the issue or provides code suggestions to resolve it.
14-
1. Implement the suggested fix and re-run the application to verify the issue is resolved.
12+
1. [] Review how Copilot brings in debugger information, including stack traces and variable states.
13+
1. [] Note how Copilot recommends a fix for the issue or provides code suggestions to resolve it.
1514

1615
**Key Takeaway**: Copilot can assist in diagnosing and fixing exceptions by analyzing debugger information and providing actionable recommendations.
1716

@@ -30,15 +29,13 @@ In this subsection, you'll learn how to use Copilot to analyze variables using w
3029
>Note: you can also see these in the Locals or watch windows
3130
3231
1. [] Observe how Copilot provides detailed information about the variable, including its value and potential issues.
33-
1. [] Use the insights provided by Copilot to verify or debug the behavior of the **imagePrefix** variable.
3432
1. [] Hover over the **products** collection and click the **View** button with the magnifier icon.
3533

3634
![View button on products](./images/7-view-products.png)
3735

3836
1. [] Use the visualizer to inspect the contents of the **products** collection.
39-
1. [] Click the sparkle button and, in natural language, type:
40-
*"Products that have the name outdoor in them and are under 10 dollars"*.
41-
Observe how Copilot generates the appropriate expression automatically.
37+
1. [] Click the sparkle button and, in natural language, type: `Products that have the name outdoor in them and are under 40 dollars`
38+
1. [] Observe how Copilot generates the appropriate expression automatically.
4239

4340
![Sparkle icon for visualizer](./images/7-visualizer-sparkle.png)
4441

lab/part8-commit-summary-descriptions.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,14 @@ In this section, you'll learn how to use GitHub Copilot to generate commit messa
88
![VS commit dialog with AI button](./images/8-commit.png)
99

1010
1. [] Navigate to **Tools -> Options -> GitHub -> Copilot -> Source Control Integration**.
11-
1. [] Update the commit message customization setting to:
12-
*"Summarize in a few sentences and then highlight the top 5 changes with emoji and short descriptions."*
11+
1. [] Update the commit message customization setting to: `Summarize in a few sentences and then highlight the top 5 changes with emoji and short descriptions`
1312
1. [] Return to the **Git Changes** view and generate a new commit message.
1413
1. [] Observe how the new commit message reflects the updated customization.
1514

1615
**Key Takeaway**: Copilot can help you create meaningful and well-structured commit messages, saving time and improving collaboration.
1716

1817
## Code Reviews with Copilot
1918

20-
1. [] Navigate to **Tools -> Options -> GitHub -> Copilot -> Source Control Integration**.
21-
1. [] Ensure the **Code Review Assistance** feature is turned on.
2219
1. [] Before submitting your changes, use the **Code Review** feature to analyze your code for potential improvements and suggestions.
2320

2421
![Code Review Assistance toggle](./images/8-code-review.png)

0 commit comments

Comments
 (0)