Skip to content

Commit cfd8d83

Browse files
committed
feat: 新增 Agent 快速設置指令區塊
- 在 README.md 開頭加入可摺疊的 Agent 設置指令 - 在 index.html 快速開始區塊整合 Agent 設置提示 - 提供完整的環境設置步驟,方便 AI Agent 自動執行 - 包含 git clone、submodule、VS Code 設定等完整流程
1 parent dbe6b18 commit cfd8d83

2 files changed

Lines changed: 67 additions & 0 deletions

File tree

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,47 @@
22

33
這是一個 GitHub Copilot 完整教學專案,透過 8 個由淺入深的實作場景,讓您掌握 GitHub Copilot 的各種功能。
44

5+
## 🤖 Agent 快速設置 (複製整段給 Agent)
6+
7+
<details>
8+
<summary>📋 點擊展開 Agent 設置指令</summary>
9+
10+
```
11+
請幫我設置 GitHub Copilot 教學專案環境:
12+
13+
1. 克隆專案(包含 submodule):
14+
git clone --recursive https://github.com/yulin0629/github-copilot-tutorial.git
15+
cd github-copilot-tutorial
16+
17+
2. 如果場景 8 的 submodule 沒有正確下載,請執行:
18+
git submodule update --init --recursive
19+
20+
3. 檢查專案結構是否完整(應有 8 個場景資料夾):
21+
- 01-first-experience/
22+
- 02-code-explanation/
23+
- 03-function-generation/
24+
- 04-debugging-assistant/
25+
- 05-unit-testing/
26+
- 06-code-refactoring/
27+
- 07-documentation/
28+
- 08-comprehensive-project/ (這是 git submodule)
29+
30+
4. 在 VS Code 中開啟專案:
31+
code .
32+
33+
5. 確認已安裝必要的 VS Code 擴充套件:
34+
- GitHub Copilot
35+
- GitHub Copilot Chat
36+
37+
6. 設定 VS Code 的 Copilot 語言為繁體中文:
38+
在 settings.json 中加入:
39+
"github.copilot.chat.localeOverride": "zh-TW"
40+
41+
完成後請告訴我設置狀態,並開啟 index.html 預覽教學內容。
42+
```
43+
44+
</details>
45+
546
## 🔗 取得教學專案
647

748
```bash

index.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,32 @@ <h3>🚀 快速開始</h3>
526526
2. 登入 GitHub 帳號並選擇適合的訂閱方案<br>
527527
3. 設定繁體中文語言環境<br>
528528
4. 開始第一個場景的學習</p>
529+
530+
<details style="margin-top: 15px; background: #f0f7ff; padding: 15px; border-radius: 8px; border: 1px solid #667eea;">
531+
<summary style="cursor: pointer; font-weight: bold; color: #667eea;">🤖 Agent 快速設置指令(點擊展開)</summary>
532+
<pre style="margin-top: 10px; background: white; padding: 15px; border-radius: 5px; font-size: 0.9rem; overflow-x: auto;">請幫我設置 GitHub Copilot 教學專案環境:
533+
534+
1. 克隆專案(包含 submodule):
535+
git clone --recursive https://github.com/yulin0629/github-copilot-tutorial.git
536+
cd github-copilot-tutorial
537+
538+
2. 如果場景 8 的 submodule 沒有正確下載,請執行:
539+
git submodule update --init --recursive
540+
541+
3. 檢查專案結構是否完整(應有 8 個場景資料夾)
542+
543+
4. 在 VS Code 中開啟專案:
544+
code .
545+
546+
5. 確認已安裝必要的 VS Code 擴充套件:
547+
- GitHub Copilot
548+
- GitHub Copilot Chat
549+
550+
6. 設定 VS Code 的 Copilot 語言為繁體中文
551+
552+
完成後請告訴我設置狀態,並開啟 index.html 預覽教學內容。</pre>
553+
</details>
554+
529555
<div style="text-align: center; margin-top: 20px; display: flex; gap: 15px; justify-content: center; flex-wrap: wrap;">
530556
<a href="#" onclick="loadMarkdown('./README.md', 'GitHub Copilot 教學專案 - 完整指南'); return false;" class="btn btn-doc btn-primary">
531557
📖 查看完整教學指南

0 commit comments

Comments
 (0)