Skip to content

Commit fcc24ae

Browse files
Use direct link to clone example repository (#54583)
Co-authored-by: Sam Browning <[email protected]>
1 parent edd0958 commit fcc24ae

File tree

1 file changed

+15
-20
lines changed

1 file changed

+15
-20
lines changed

content/get-started/learning-to-code/learning-to-debug-with-github-copilot.md

+15-20
Original file line numberDiff line numberDiff line change
@@ -54,32 +54,28 @@ def dice_battle():
5454
print(dice_battle())
5555
```
5656

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:
6158

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.
6862

6963
Now that we've cloned the repository, let's run `bugged_dice_battle.py` to see the output:
7064

7165
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).
7266
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:
7470

7571
```shell copy
76-
python bugged_dice_battle.py
72+
py bugged_dice_battle.py
7773
```
7874

79-
Otherwise, if you are using Windows, paste the following code:
75+
Mac or Linux:
8076

8177
```shell copy
82-
py bugged_dice_battle.py
78+
python bugged_dice_battle.py
8379
```
8480

8581
1. Press <kbd>Enter</kbd> to run the program.
@@ -116,18 +112,17 @@ print(f"The factorial of {number} is {factorial}")
116112
117113
Since we've already cloned the repository locally, let's run `bugged_factorial_finder.py` to see the output:
118114
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:
122117
123118
```shell copy
124-
python bugged_factorial_finder.py
119+
py bugged_factorial_finder.py
125120
```
126121
127-
Otherwise, if you are using Windows, paste the following code:
122+
Mac or Linux:
128123
129124
```shell copy
130-
py bugged_factorial_finder.py
125+
python bugged_factorial_finder.py
131126
```
132127
133128
1. Press <kbd>Enter</kbd> to run the program.

0 commit comments

Comments
 (0)