refactor README

pull/54/head
Muhammad Atif Ali 2 years ago
parent d7f009a407
commit 8630c941e3
No known key found for this signature in database

@ -11,28 +11,26 @@ tags: [helper, ide, vscode, web]
Automatically install [Visual Studio Code Server](https://code.visualstudio.com/docs/remote/vscode-server) in a workspace using the [VS Code CLI](https://code.visualstudio.com/docs/editor/command-line) and create an app to access it via the dashboard. Automatically install [Visual Studio Code Server](https://code.visualstudio.com/docs/remote/vscode-server) in a workspace using the [VS Code CLI](https://code.visualstudio.com/docs/editor/command-line) and create an app to access it via the dashboard.
```hcl
module "vscode-web" {
source = "https://registry.coder.com/modules/vscode-server"
agent_id = coder_agent.example.id
accept_license = true
}
```
![VS Code Server with GitHub Copilot and live-share](../.images/vscode-server.gif) ![VS Code Server with GitHub Copilot and live-share](../.images/vscode-server.gif)
## Examples ## Examples
1. Install VS Code Server with default settings: ### Install VS Code Server to a custom folder
```hcl ```hcl
module "vscode-web" { module "vscode-web" {
source = "https://registry.coder.com/modules/vscode-server" source = "https://registry.coder.com/modules/vscode-server"
agent_id = coder_agent.example.id agent_id = coder_agent.example.id
accept_license = true install_dir = "/home/coder/.vscode-server"
} folder = "/home/coder"
``` accept_license = true
}
2. Install VS Code Server to a custom folder: ```
```hcl
module "vscode-web" {
source = "https://registry.coder.com/modules/vscode-server"
agent_id = coder_agent.example.id
install_dir = "/home/coder/.vscode-server"
folder = "/home/coder"
accept_license = true
}
```

Loading…
Cancel
Save