Skip to content

Commit 8584d49

Browse files
Start exercise
1 parent 39ccc83 commit 8584d49

File tree

5 files changed

+21
-52
lines changed

5 files changed

+21
-52
lines changed

.github/steps/1-first-codespace.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ Let's get started! We'll start up a Codespace, run the application, make a chang
3333

3434
1. Above the files list on the right, click the green **<> Code** button.
3535

36-
<img width="300" alt="green code button" src="../images/green-code-button.png" />
36+
<img width="300" alt="green code button" src="https://github.com/Meryem-Code2/skills-code-with-codespaces/blob/main/.github/images/green-code-button.png?raw=true" />
3737

3838
1. Select the **Codespaces** tab and click the **Create codespace on main** button. A new window will open running VS Code and it will connect to the remote Codespace. Wait a few minutes for the codespace to be created.
3939

4040
1. Look in the bottom left of the VS Code window see the remote connection.
4141

42-
<img width="350" alt="remote connection status in VS Code" src="../images/remote-connection-status.png"/>
42+
<img width="350" alt="remote connection status in VS Code" src="https://github.com/Meryem-Code2/skills-code-with-codespaces/blob/main/.github/images/remote-connection-status.png?raw=true"/>
4343

4444
> [!TIP]
4545
> GitHub uses the [universal](https://github.com/devcontainers/images/tree/main/src/universal) Codespace image if the repository doesn't include a configuration. It includes several useful and commonly used tools.
@@ -50,11 +50,11 @@ Let's get started! We'll start up a Codespace, run the application, make a chang
5050

5151
1. In the left sidebar, select the file **Explorer** tab and open the file `src/hello.py`.
5252

53-
<img width="250" alt="vs code explorer tab" src="../images/vs-code-explorer-tab.png" />
53+
<img width="250" alt="vs code explorer tab" src="https://github.com/Meryem-Code2/skills-code-with-codespaces/blob/main/.github/images/vs-code-explorer-tab.png?raw=true" />
5454

5555
1. In the lower panel, select the **TERMINAL** tab.
5656

57-
<img width="350" alt="vs code terminal tab" src="../images/vs-code-terminal-tab.png" />
57+
<img width="350" alt="vs code terminal tab" src="https://github.com/Meryem-Code2/skills-code-with-codespaces/blob/main/.github/images/vs-code-terminal-tab.png?raw=true" />
5858

5959
1. Paste the following command in the Codespace's remote terminal to show the installed versions of several tools. Note the versions for comparison later.
6060

.github/steps/2-custom-image.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Let's create this file and set a few of the most common settings. For other opti
4040
4141
1. After saving, VS Code likely popped up a notification that it detected a configuration change. You can **Accept** that option to rebuild the development container or manually use the Command Palette (`CTRL`+`Shift`+`P`) and run the command `Codespaces: Rebuild Container`. Select the **Rebuild** option. A full build is not necessary.
4242

43-
<img width="350" alt="rebuild codespace command" src="../images/rebuild-codespace-command.png"/>
43+
<img width="350" alt="rebuild codespace command" src="https://github.com/Meryem-Code2/skills-code-with-codespaces/blob/main/.github/images/rebuild-codespace-command.png?raw=true"/>
4444

4545
1. Wait a few minutes for the Codespace to rebuild and VS Code to reconnect.
4646

.github/steps/3-customize-codespace.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Let's add the GitHub CLI, extensions to run the python program using VS Code, an
1212
Codespaces: Add Dev Container Configuration Files...
1313
```
1414

15-
<img width="350" alt="vs code configure dev container command" src="../images/configure-dev-container-command.png" />
15+
<img width="350" alt="vs code configure dev container command" src="https://github.com/Meryem-Code2/skills-code-with-codespaces/blob/main/.github/images/configure-dev-container-command.png?raw=true" />
1616

1717
1. Select the option `Modify your active configuration...`.
1818

@@ -39,15 +39,15 @@ Let's add the GitHub CLI, extensions to run the python program using VS Code, an
3939

4040
1. In the left navigation, select the **Extension** tab.
4141

42-
<img width="200" alt="vs code extensions tab" src="../images/vs-code-extensions-tab.png" />
42+
<img width="200" alt="vs code extensions tab" src="https://github.com/Meryem-Code2/skills-code-with-codespaces/blob/main/.github/images/vs-code-extensions-tab.png?raw=true" />
4343

4444
1. Search for `python` and find entries for `Python` and `Python Debugger`.
4545

46-
<img width="250" alt="python extensions for vs code" src="../images/python-extensions.png" />
46+
<img width="250" alt="python extensions for vs code" src="https://github.com/Meryem-Code2/skills-code-with-codespaces/blob/main/.github/images/python-extensions.png?raw=true" />
4747

4848
1. Right click on each entry and select the `Add to devcontainer.json` option.
4949

50-
<img width="250" alt="add to devcontainer config button" src="../images/add-to-devcontainer-button.png" />
50+
<img width="250" alt="add to devcontainer config button" src="https://github.com/Meryem-Code2/skills-code-with-codespaces/blob/main/.github/images/add-to-devcontainer-button.png?raw=true" />
5151

5252
1. Navigate to and open the `.devcontainer/devcontainer.json` file.
5353

@@ -116,7 +116,7 @@ The Dev Container specification provides multiple locations to run [lifecycle sc
116116

117117
1. Open the VS Code Command Palette (`CTRL`+`Shift`+`P`) and run the `Codespaces: Rebuild Container` command. Select the **Rebuild** option. A full build is not necessary.
118118

119-
<img width="350" alt="rebuild codespace command" src="../images/rebuild-codespace-command.png"/>
119+
<img width="350" alt="rebuild codespace command" src="https://github.com/Meryem-Code2/skills-code-with-codespaces/blob/main/.github/images/rebuild-codespace-command.png?raw=true"/>
120120

121121
1. Wait a few minutes for the Codespace to rebuild and VS Code to reconnect.
122122

@@ -133,11 +133,11 @@ Now that you've rebuilt the codespace, let's verify the python extension, python
133133

134134
1. In the left sidebar, click the extensions tab and verify that the Python extensions are installed and enabled.
135135

136-
<img width="250" alt="python extensions for vs code" src="../images/python-extensions.png" />
136+
<img width="250" alt="python extensions for vs code" src="https://github.com/Meryem-Code2/skills-code-with-codespaces/blob/main/.github/images/python-extensions.png?raw=true" />
137137

138138
1. In the left sidebar, select **Run and Debug** tab and then press the **Start Debugging** icon. VS Code will open the lower panel and show the run logs.
139139

140-
<img width="250" alt="run and debug tab pointing to start button" src="../images/run-and-debug-start-button.png"/>
140+
<img width="250" alt="run and debug tab pointing to start button" src="https://github.com/Meryem-Code2/skills-code-with-codespaces/blob/main/.github/images/run-and-debug-start-button.png?raw=true"/>
141141

142142
1. In the lower panel, switch to the **TERMINAL** tab.
143143

.github/steps/4-use-codespace.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ The final test of our Codespace is to put ourselves in the position of an onboar
1212

1313
1. Select the **Codespaces** tab to show the list of created Codespaces.
1414

15-
<img width="250" alt="list of codespaces" src="../images/codespaces-list.png" />
15+
<img width="250" alt="list of codespaces" src="https://github.com/Meryem-Code2/skills-code-with-codespaces/blob/main/.github/images/codespaces-list.png?raw=true" />
1616

1717
1. Find the active entry, select the three dot menu `...`, and select the **Delete** command.
1818

19-
<img width="500" alt="delete codespace command" src="../images/delete-codespace-command.png" />
19+
<img width="500" alt="delete codespace command" src="https://github.com/Meryem-Code2/skills-code-with-codespaces/blob/main/.github/images/delete-codespace-command.png?raw=true" />
2020

2121
> [!TIP]
2222
> You can manage all of your Codespaces across all projects at https://github.com/codespaces

README.md

Lines changed: 7 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,16 @@
1-
# Code with GitHub Codespaces and Visual Studio Code
1+
# Code with Codespaces
22

3-
_Develop your project with a pre-configured development environment using Codespaces!_
3+
<img src="https://octodex.github.com/images/Professortocat_v2.png" align="right" height="200px" />
44

5-
## Welcome
5+
Hey Meryem-Code2!
66

7-
GitHub Codespaces is a development environment that is hosted in the cloud.
7+
Mona here. I'm done preparing your exercise. Hope you enjoy! 💚
88

9-
- **Who this is for**: Developers, DevOps Engineers, Engineering Managers, Product Managers.
10-
- **What you'll learn**: How to create, configure, and use a codespace.
11-
- **What you'll build**: A codespace configuration with customizations tailored to a repository.
12-
- **Prerequisites**: Familiar with [Visual Studio Code Docs](https://code.visualstudio.com/docs).
13-
- **How long**: This exercise can be completed in less than an hour.
9+
Remember, it's self-paced so feel free to take a break! ☕️
1410

15-
In this exercise, you will:
16-
17-
1. Create your first codespace and change some code
18-
1. Customize your codespace
19-
1. Practice using the codespace
20-
21-
### How to start this exercise
22-
23-
Simply copy the exercise to your account, then give your favorite Octocat (Mona) **about 20 seconds** to prepare the first lesson, then **refresh the page**.
24-
25-
[![](https://img.shields.io/badge/Copy%20Exercise-%E2%86%92-1f883d?style=for-the-badge&logo=github&labelColor=197935)](https://github.com/new?template_owner=skills&template_name=code-with-codespaces&owner=%40me&name=skills-code-with-codespaces&description=Exercise:+Code+with+Codespaces&visibility=public)
26-
27-
<details>
28-
<summary>Having trouble? 🤷</summary><br/>
29-
30-
When copying the exercise, we recommend the following settings:
31-
32-
- For owner, choose your personal account or an organization to host the repository.
33-
- We recommend creating a public repository, as private repositories will [use Actions minutes](https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions).
34-
35-
If the exercise isn't ready in 20 seconds:
36-
37-
1. After your new repository is created, wait about 20 seconds, then refresh the page.
38-
2. Follow the step-by-step instructions in the issue created in your repository.
39-
3. If the page doesn't refresh automatically, please check the [Actions](../../actions) tab.
40-
- Check to see if a job is running. Sometimes it simply takes a bit longer.
41-
- If the page shows a failed job, please submit an issue. Nice, you found a bug! 🐛
42-
43-
</details>
11+
[![](https://img.shields.io/badge/Go%20to%20Exercise-%E2%86%92-1f883d?style=for-the-badge&logo=github&labelColor=197935)](https://github.com/Meryem-Code2/skills-code-with-codespaces/issues/1)
4412

4513
---
4614

4715
&copy; 2025 GitHub &bull; [Code of Conduct](https://www.contributor-covenant.org/version/2/1/code_of_conduct/code_of_conduct.md) &bull; [MIT License](https://gh.io/mit)
16+

0 commit comments

Comments
 (0)