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
Copy file name to clipboardExpand all lines: content/get-started/learning-to-code/learning-to-debug-with-github-copilot.md
+15-20
Original file line number
Diff line number
Diff line change
@@ -54,32 +54,28 @@ def dice_battle():
54
54
print(dice_battle())
55
55
```
56
56
57
-
First, we need to clone the repository locally:
58
-
1. In {% data variables.product.prodname_vscode_shortname %}, open the Command Palette by pressing <kbd>Cmd</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> (Mac) or <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> (Windows/Linux).
59
-
1. Type `Git: Clone` and press <kbd>Enter</kbd>.
60
-
1. Paste the URL of the `new2code/debug-with-copilot` repository:
57
+
First, we need to create a local copy of the example repository:
61
58
62
-
```text copy
63
-
https://github.com/new2code/debug-with-copilot
64
-
```
65
-
66
-
1. Press <kbd>Enter</kbd>, then choose a location to save the repository on your computer.
67
-
1. When prompted, open the repository in {% data variables.product.prodname_vscode_shortname %}.
59
+
1.[Start cloning the new2code/debug-with-copilot repository](vscode://vscode.git/clone?url=https://github.com/new2code/debug-with-copilot) in {% data variables.product.prodname_vscode_shortname %}. <!-- markdownlint-disable-line GHD003 -->
60
+
1. Choose a location to save the repository on your computer, then click **Select as Repository Destination**.
61
+
1. When prompted, open the repository.
68
62
69
63
Now that we've cloned the repository, let's run `bugged_dice_battle.py` to see the output:
70
64
71
65
1. Open the Command Palette by pressing <kbd>Cmd</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> (Mac) or <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> (Windows/Linux).
72
66
1. Type `Terminal: Create New Terminal` and press <kbd>Enter</kbd>.
73
-
1. If you are using Mac or Linux, in the terminal tab, paste the following code:
67
+
1. In the terminal tab, paste the following command.
68
+
69
+
Windows:
74
70
75
71
```shell copy
76
-
python bugged_dice_battle.py
72
+
py bugged_dice_battle.py
77
73
```
78
74
79
-
Otherwise, if you are using Windows, paste the following code:
75
+
Mac or Linux:
80
76
81
77
```shell copy
82
-
py bugged_dice_battle.py
78
+
python bugged_dice_battle.py
83
79
```
84
80
85
81
1. Press <kbd>Enter</kbd> to run the program.
@@ -116,18 +112,17 @@ print(f"The factorial of {number} is {factorial}")
116
112
117
113
Since we've already cloned the repository locally, let's run `bugged_factorial_finder.py` to see the output:
118
114
119
-
1. In {% data variables.product.prodname_vscode_shortname %}, open the Command Palette by pressing <kbd>Cmd</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> (Mac) or <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> (Windows/Linux).
120
-
1. Type `Terminal: Create New Terminal` and press <kbd>Enter</kbd>.
121
-
1. If you are using Mac or Linux, in the terminal tab, paste the following code:
115
+
1. In the terminal you created earlier, paste the following command.
116
+
Windows:
122
117
123
118
```shell copy
124
-
python bugged_factorial_finder.py
119
+
py bugged_factorial_finder.py
125
120
```
126
121
127
-
Otherwise, if you are using Windows, paste the following code:
0 commit comments