Skip to content

Commit 313f44e

Browse files
Update exercise 3 and start on 4
1 parent d65f7c3 commit 313f44e

File tree

8 files changed

+21
-42
lines changed

8 files changed

+21
-42
lines changed

Diff for: 03-Introduction-to-GitHub-Copilot/steps/2-skills-dotnet.md

+10-15
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,20 @@ GitHub Copilot provides suggestions for numerous languages and a wide variety of
66

77
Let's try this out utilizing C# for Copilot.
88

9+
> **Note**:
10+
> If you closed the Codespace from above, please open it back up or create a new Codespace.
11+
912
### ⌨️ Activity: Add a C# file and start writing code
1013

1114
> **Note**:
12-
> If you closed the Codespace from above, please open it back up or create a new Codespace.
15+
> Make sure to open the **Solution Explorer** to see an organized view to easily add new projects and run them..
1316
1417
1. Create a new .NET project by using the `.NET: New Project...` command and selecting `Console App`.
1518
1. Select the **code** folder and name the project **Skills**.
1619
1. Open `Program.cs`
1720
1. Verify your new file looks like:
1821
![VS code with a new Program.cs](./img/2-skills-dotnet-0.png)
22+
1923
1. In the `Program.cs` file, remove any code and then type the following function header.
2024

2125
```csharp
@@ -30,23 +34,14 @@ Let's try this out utilizing C# for Copilot.
3034

3135
### ⌨️ Activity: Push code to your repository from the codespace
3236

33-
1. Use the VS Code terminal to add all files to the repository:
37+
Let's use GitHub Copilot to summarize our changes and then commit the code.
3438

35-
```
36-
git add -A
37-
```
39+
1. Open the **Source Control** tab
40+
2. Tap on thebutton in the **Message** entry for Copilot to generate your message.
3841

39-
2. Next from the VS Code terminal stage and commit the changes to the repository:
42+
![Commit tab open to generate message with Copilot](img/2-skills-commit.png)
4043

41-
```
42-
git commit -m "Copilot first commit"
43-
```
44-
45-
3. Finally from the VS Code terminal push to code to the repository:
46-
47-
```
48-
git push
49-
```
44+
3. Click the **Commit** button.
5045

5146

5247
Head to [Part 3 of the Exercise](./3-copilot-hub.md)

Diff for: 03-Introduction-to-GitHub-Copilot/steps/3-copilot-hub.md

+5-14
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,14 @@ Keep in mind that as you continue to use copilot, you may not want some of the s
2828

2929
### ⌨️ Activity: Push code to your repository from the codespace
3030

31-
1. Use the VS Code terminal to add the `Member.cs` file to the repository:
31+
Let's use GitHub Copilot to summarize our changes and then commit the code.
3232

33-
```
34-
git add Member.cs
35-
```
36-
37-
2. Next from the VS Code terminal stage and commit the changes to the repository:
38-
39-
```
40-
git commit -m "Copilot second commit"
41-
```
33+
1. Open the **Source Control** tab
34+
2. Tap on the ✨ button in the **Message** entry for Copilot to generate your message.
4235

43-
3. Finally from the VS Code terminal push to code to the repository:
36+
![Commit tab open to generate message with Copilot](img/2-skills-commit.png)
4437

45-
```
46-
git push
47-
```
38+
3. Click the **Commit** button.
4839

4940

5041
Head to [Part 4 of the Exercise](./4-copilot-comment.md)

Diff for: 03-Introduction-to-GitHub-Copilot/steps/4-copilot-comment.md

+6-13
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,13 @@ Now lets see how you can leverage comments to generate Copilot suggestions!
3131

3232
### ⌨️ Activity: Push code to your repository from the codespace
3333

34-
1. Use the VS Code terminal to add the `Comments.cs` file to the repository:
34+
Let's use GitHub Copilot to summarize our changes and then commit the code.
3535

36-
```
37-
git add Comments.cs
38-
```
39-
40-
2. Next from the VS Code terminal stage and commit the changes to the repository:
36+
1. Open the **Source Control** tab
37+
2. Tap on the ✨ button in the **Message** entry for Copilot to generate your message.
4138

42-
```
43-
git commit -m "Copilot third commit"
44-
```
39+
![Commit tab open to generate message with Copilot](img/2-skills-commit.png)
4540

46-
3. Finally from the VS Code terminal push to code to the repository:
41+
3. Click the **Commit** button.
4742

48-
```
49-
git push
50-
```
43+
Head to [Exercise 4 - Using GitHub Copilot with C#](../../04-Using-GitHub-Copilot-with-CSharp/README.md)
Loading
Loading
Loading
15.7 KB
Loading
Loading

0 commit comments

Comments
 (0)