Skip to content

Commit

Permalink
Merge pull request #153 from Jelleas/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
rongxin-liu committed Feb 7, 2023
2 parents b811a47 + ee7c53f commit 2e035b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ To use VS Code locally with Docker, running a [codespace-like container](https:/
1. Download CS50's latest `.devcontainer.json` file from [raw.githubusercontent.com/cs50/codespace/main/.devcontainer.json](https://raw.githubusercontent.com/cs50/codespace/main/.devcontainer.json), saving it in `foo`. Because the file's name starts with a dot (i.e., period), it might seem to "disappear" when you download it. But, in a terminal window on Linux or macOS, you should see it with `ls -a`, and at a command prompt in Windows, you should see it with `dir /a`.
1. Download, install, and start [Docker](/docker/) on your computer.
1. Download and install [VS Code](https://code.visualstudio.com/download) itself on your computer.
1. Install VS Code's [Remote - Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) extension.
1. Open VS Code's [command palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette), as via **Ctrl+Shift+P** on Linux, **⇧⌘P** on macOS, and **Ctrl+Shift+P** on Windows, select **>Remote-Containers - Open Folder in Container...**, and open `foo`.
1. Install VS Code's [Dev Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) extension.
1. Open VS Code's [command palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette), as via **Ctrl+Shift+P** on Linux, **⇧⌘P** on macOS, and **Ctrl+Shift+P** on Windows, select **>Dev Containers - Open Folder in Container...**, and open `foo`.

Alternatively, select **>Remote-Containers: Install devcontainer CLI**, and then, in VS Code's terminal window, `cd` to `foo` and execute `devcontainer open .`.
Alternatively, select **>Dev Containers: Install devcontainer CLI**, and then, in VS Code's terminal window, `cd` to `foo` and execute `devcontainer open .`.

Once the container finishes building and starting, you should find that `foo` is mounted within the container at `/workspaces/foo`.

Expand Down

0 comments on commit 2e035b5

Please sign in to comment.