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
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.
Copy file name to clipboardExpand all lines: lab/part11-reusable-prompts.md
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Part 11: Reusable Prompt Files
1
+
# Part 11: Reusable Prompt Files
2
2
3
3
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.
4
4
@@ -24,10 +24,16 @@ The solution already includes a **TinyShop.Tests** project with MSTest configure
24
24
25
25
Now let's create a prompt file that helps generate additional unit tests using MSTest.
26
26
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:
31
37
32
38
```markdown
33
39
---
@@ -142,4 +148,4 @@ public void ImageUrl_SetValue_ReturnsExpectedValue(string imageUrl)
142
148
143
149
---
144
150
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