Skip to content

Commit 65b4354

Browse files
Update prompt file instructions and add illustration
Enhanced reusable prompt file setup guide in part11-reusable-prompts.md with clearer steps for using the Copilot extension, added manual creation alternative, and improved navigation links. Included 11-prompt-file.png to visually support the instructions.
1 parent 7fd882f commit 65b4354

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

lab/images/11-prompt-file.png

31.8 KB
Loading

lab/part11-reusable-prompts.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Part 11: Reusable Prompt Files
1+
# Part 11: Reusable Prompt Files
22

33
Prompt files are a powerful way to create standardized, reusable prompts that can be shared across your team. They help ensure consistency in how you interact with GitHub Copilot and can encode best practices for common tasks like code generation, testing, and documentation.
44

@@ -24,10 +24,16 @@ The solution already includes a **TinyShop.Tests** project with MSTest configure
2424

2525
Now let's create a prompt file that helps generate additional unit tests using MSTest.
2626

27-
1. [] In **Solution Explorer**, right-click on the solution and select **Add -> New Folder** and name it `.github` if it doesn't already exist.
28-
1. [] Right-click on the `.github` folder and select **Add -> New Folder** and name it `prompts`.
29-
1. [] Right-click on the `prompts` folder and select **Add -> New Item**.
30-
1. [] Create a new file named `unit-test.prompt.md` with the following content:
27+
1. [] In **Solution Explorer** under the we will see the **GitHub Node** from teh extension to add it easily:
28+
- Right-Click the **GitHub Node** icon/extension in Visual Studio.
29+
- Choose **Add Copilot File...**.
30+
- Select **Prompt file...** from the dialog.
31+
- Change the file name to `unit-test.prompt.md` and click **OK**.
32+
- The new file will open in the editor; paste the content shown below into the file and save it.
33+
34+
1. [] If you can create the file manually in file explorer, add a new file named `unit-test.prompt.md` under `.github/prompts` and paste the content below.
35+
36+
1. [] Update the prompt file with the following content:
3137

3238
```markdown
3339
---
@@ -142,4 +148,4 @@ public void ImageUrl_SetValue_ReturnsExpectedValue(string imageUrl)
142148

143149
---
144150

145-
[Back: Part 10 - Planning Mode in Agent](./part10-planning-mode.md) ? | [Next: Part 12 - Delegate to the Cloud](./part12-delegate-to-cloud.md) ?
151+
[Back: Part 10 - Planning Mode in Agent](./part10-planning-mode.md) | [Next: Part 12 - Delegate to the Cloud](./part12-delegate-to-cloud.md)

0 commit comments

Comments
 (0)