Files
docker_stack/vs-code-server/template/QUICKSTART.md
2025-11-17 00:53:51 +08:00

83 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 🎯 5 分鐘快速開始
## 步驟 1啟動 Coder Server已在 Docker 運行)
```bash
docker-compose -f vs-code-server.yml up -d
```
驗證:訪問 https://code.karylab.com
---
## 步驟 2上傳 Template
```bash
# 進入 template 目錄
cd c:\Users\ckliu\Documents\docker_stack\vs-code-server
# 登入 Coder首次
coder login https://code.karylab.com
# 上傳 template
coder templates create -d ./template --name vscode
```
---
## 步驟 3建立 Workspace以使用者身份
1. 進入 https://code.karylab.com
2. 用 GitHub 登入
3. Dashboard → "Create Workspace"
4. 選 "vscode" template
5. 輸入 workspace 名稱
6. 點擊 "Create"
7. 等待 30-60 秒
---
## 步驟 4使用 VSCode + Copilot
1. Workspace 啟動後 → 在 Dashboard 中應看到 "code" 應用
2. 點擊 "code" 進入 VSCode
3. 左側 Extensions → 搜尋 "GitHub Copilot"
4. 安裝並授權
5. 開始寫代碼Copilot 自動完成!
---
## 常用命令
```bash
# 上傳 template更新後重新執行
coder templates create -d ./template --name vscode
# 查看已上傳的 templates
coder templates list
# 刪除 template
coder templates delete vscode
```
---
## 常見問題速查
| 問題 | 解決方案 |
|------|--------|
| Workspace 無法啟動 | 查看 Dashboard → Workspace → Logs |
| Copilot 無法認證 | 重新登入Ctrl+Shift+P → "Copilot: Sign In" |
| 檔案未保存 | Settings → Auto Save → 確認已啟用 |
| 容器無法訪問 | 檢查 Docker 是否運行、防火牆設定 |
---
## 🎓 更詳細的說明
查看 `README-CN.md` 瞭解完整功能、配置、故障排除等。
---
**下一步:** 登入 Coder建立第一個 Workspace