Skip to content

Commit 4b42e37

Browse files
author
Katie Horne
committed
chore: add code-server usage instructions
1 parent 4e51be6 commit 4b42e37

File tree

1 file changed

+41
-1
lines changed

1 file changed

+41
-1
lines changed

docs/ides.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ $ ssh coder.<workspaceName>
4141
Your workspace is now accessible via `ssh coder.<workspace_name>` (e.g.,
4242
`ssh coder.myEnv` if your workspace is named `myEnv`).
4343

44-
## VS Code
44+
## VS Code Remote
4545

4646
Once you've configured SSH, you can work on projects from your local copy of VS
4747
Code, connected to your Coder workspace for compute, etc.
@@ -53,3 +53,43 @@ Code, connected to your Coder workspace for compute, etc.
5353

5454
1. In VS Code's left-hand nav bar, click **Remote Explorer** and right-click on
5555
a workspace to connect.
56+
57+
## VS Code in the browser
58+
59+
> You must have Docker Desktop running for this template to work.
60+
61+
Coder offers a [sample template that includes
62+
code-server](../examples/templates/docker-code-server/README.md).
63+
64+
To use:
65+
66+
1. Start Coder:
67+
68+
```console
69+
coder server --dev
70+
```
71+
72+
1. Open a new terminal and run:
73+
74+
```console
75+
coder templates init
76+
```
77+
78+
1. When prompted, select the **Develop code-server in Docker** option.
79+
80+
1. Navigate into your new folder and create your sample template:
81+
82+
```console
83+
cd code-server-docker && coder templates create
84+
```
85+
86+
Follow the prompts that appear in the terminal.
87+
88+
1. Create your workspace:
89+
90+
```console
91+
coder create --template="docker-code-server" [workspace name]
92+
```
93+
94+
1. Log into Coder's Web UI, and open your workspace. Then,
95+
click **code-server** to launch VS Code in a new browser window.

0 commit comments

Comments
 (0)