Skip to content

Commit ef1955f

Browse files
authored
feat: Add copilot icon to prompts
1 parent 196493f commit ef1955f

File tree

3 files changed

+36
-15
lines changed

3 files changed

+36
-15
lines changed

.github/steps/1-preparing.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,12 @@ Let's start up our development environment, use copilot to learn a bit about the
5656

5757
1. Enter the below prompt to ask Copilot to introduce you to the project.
5858

59-
```txt
60-
@workspace Please briefly explain the structure of this project. What should I do to run it?
61-
```
59+
> <img width="13px" src="https://github.com/user-attachments/assets/98fd5d2e-ea29-4a4a-9212-c7050e177a69" /> **Prompt**
60+
>
61+
> ```prompt
62+
> @workspace Please briefly explain the structure of this project.
63+
> What should I do to run it?
64+
> ```
6265
6366
> **Note**: It is not necesesary to follow Copilot's recommended instructions. We have already prepared the environment for you.
6467
@@ -86,6 +89,12 @@ Great work! Now that we are familiar with the app and we know it works, let's as
8689
8790
1. Let's ask Copilot to help us remember a command we have forgotten: creating a branch and publishing it
8891
92+
> <img width="13px" src="https://github.com/user-attachments/assets/98fd5d2e-ea29-4a4a-9212-c7050e177a69" /> **Prompt**
93+
>
94+
> ```prompt
95+
> Hey copilot, how can I create and publish a new Git branch?
96+
> ```
97+
8998
> **Tip:** This is a simple example, but Copilot is great at providing more tailored commands that might involve loops, pattern matching, file modification, and more! Don't be afraid to ask Copilot for a suggestion. Just remember it is a suggestion and you should always verify it first to be safe.
9099
91100
1. Copilot probably gave us a command like the following. Rather than manually modify it, let's respond back to tell Copilot to use a particular name.
@@ -95,9 +104,12 @@ Great work! Now that we are familiar with the app and we know it works, let's as
95104
git push -u origin {new_branch_name}
96105
```
97106
98-
```text
99-
Awesome! Thanks, Copilot! Let's use the branch name "accelerate-with-copilot".
100-
```
107+
> <img width="13px" src="https://github.com/user-attachments/assets/98fd5d2e-ea29-4a4a-9212-c7050e177a69" /> **Prompt**
108+
>
109+
> ```prompt
110+
> Awesome! Thanks, Copilot! Let's use the
111+
> branch name "accelerate-with-copilot".
112+
> ```
101113
102114
> **Tip:** If Copilot doesn't give you quite what you want, you can always continue explaining what you need. Copilot will remember the conversation history for follow-up responses.
103115

.github/steps/2-first-introduction.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@ In short, you can think of Copilot like a very focused coworker. To be effective
2222

2323
1. Let's ask Copilot to suggest where our bug might be coming from. Open the **Copilot Chat** panel and ask the following.
2424

25-
```text
26-
@workspace Students are able to register twice for an activity. Where could this bug be coming from?
27-
```
25+
> <img width="13px" src="https://github.com/user-attachments/assets/98fd5d2e-ea29-4a4a-9212-c7050e177a69" /> **Prompt**
26+
>
27+
> ```prompt
28+
> @workspace Students are able to register twice for an activity.
29+
> Where could this bug be coming from?
30+
> ```
2831
2932
1. Now that we know the issue is in the `src/appy.py` file and the `signup_for_activity` method, let's follow Copilot's recommendation and go fix it (semi-manually). We'll start with a comment and let Copilot finish the correction.
3033
@@ -87,9 +90,12 @@ In new project developments, it's often helpful to have some realistic looking f
8790
8891
1. Enter the following prompt text and press enter or the **Send and Dispatch** button.
8992

90-
```text
91-
Add 2 more sports related activities, 2 more artistic activities, and 2 more intellectual activities.
92-
```
93+
> <img width="13px" src="https://github.com/user-attachments/assets/98fd5d2e-ea29-4a4a-9212-c7050e177a69" /> **Prompt**
94+
>
95+
> ```prompt
96+
> Add 2 more sports related activities, 2 more artistic
97+
> activities, and 2 more intellectual activities.
98+
> ```
9399
94100
1. After a moment, Copilot will directly start making changes to the code. The changes will be stylized differently to make any additions and removals easy to identify. Take a moment to inspect and then press the **Accept** button.
95101

.github/steps/3-copilot-edits.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,12 @@ In our previous steps, we used features of Copilot that require more hands-on gu
3737
3838
1. Ask Copilot to update our project to display the current participants of activities. Wait a moment for the edit suggestions to arrive and be applied.
3939

40-
```txt
41-
Hey Copilot, can you please edit the area where activities are listed on the website to show what participants are already signed up for that activity.
42-
```
40+
> <img width="13px" src="https://github.com/user-attachments/assets/98fd5d2e-ea29-4a4a-9212-c7050e177a69" /> **Prompt**
41+
>
42+
> ```prompt
43+
> Hey Copilot, can you please edit the area where activities are
44+
> listed on the website to show what participants are already signed up for that activity.
45+
> ```
4346
4447
- An extra icon has appeared next to the file names and open editor windows indicating they have suggested edits.
4548
- A suggested edits panel has appeared in the bottom right of the editor window providing controls to jump to the recommended changes.

0 commit comments

Comments
 (0)