Clone
4
6.10 VS Code
jsc-wiki edited this page 2026-10-14 06:27:29 +00:00

VS Code

第6章 開發與持續整合 · 來源:JSC 知識庫

簡介

code-server 可在伺服器上執行 VS Code,並透過瀏覽器遠端使用。本文記錄在 Ubuntu 上安裝 code-server 的步驟。

步驟

1. 安裝相依套件

安裝腳本下載過程需要 curl。

apt update && apt install -y curl

2. 安裝 VS Code

透過官方安裝腳本安裝 code-server。

curl -fsSL https://code-server.dev/install.sh | sh

3. 啟動服務

設為開機自動啟動並啟動目前使用者的 code-server 服務,再檢視狀態。

systemctl daemon-reload && systemctl enable --now code-server@$USER && systemctl start code-server@$USER && systemctl status code-server@$USER

4. 預設密碼

首次啟動後,登入密碼會自動產生並寫入設定檔。

cat ~/.config/code-server/config.yaml

← 6.9 C# SDK · 本章目錄 · 全書目錄 · 6.11 Coder →