TemplatesModules
Back to Modules
VS Code Web Icon

VS Code Web

By:
VS Code Web - Visual Studio Code in the browser
README
Variables (13)
Scripts (1)
Apps (1)
Source

Automatically install Visual Studio Code Server in a workspace and create an app to access it via the dashboard.

1module "vscode-web" {
2  source         = "registry.coder.com/modules/vscode-web/coder"
3  version        = "1.0.11"
4  agent_id       = coder_agent.example.id
5  accept_license = true
6}

VS Code Web with GitHub Copilot and live-share

Examples

Install VS Code Web to a custom folder

1module "vscode-web" {
2  source         = "registry.coder.com/modules/vscode-web/coder"
3  version        = "1.0.11"
4  agent_id       = coder_agent.example.id
5  install_prefix = "/home/coder/.vscode-web"
6  folder         = "/home/coder"
7  accept_license = true
8}

Install Extensions

1module "vscode-web" {
2  source         = "registry.coder.com/modules/vscode-web/coder"
3  version        = "1.0.11"
4  agent_id       = coder_agent.example.id
5  extensions     = ["github.copilot", "ms-python.python", "ms-toolsai.jupyter"]
6  accept_license = true
7}

Pre-configure Settings

Configure VS Code's settings.json file:

1module "vscode-web" {
2  source     = "registry.coder.com/modules/vscode-web/coder"
3  version    = "1.0.11"
4  agent_id   = coder_agent.example.id
5  extensions = ["dracula-theme.theme-dracula"]
6  settings = {
7    "workbench.colorTheme" = "Dracula"
8  }
9  accept_license = true
10}