|
8 | 8 |
|
9 | 9 | 您可以直接透過瀏覽器查看完整的教學內容,無需下載專案即可開始學習。 |
10 | 10 |
|
11 | | -## Agent 快速設置 (複製整段給 Agent) |
12 | | - |
13 | | -<details> |
14 | | -<summary>點擊展開 Agent 設置指令</summary> |
15 | | - |
16 | | -``` |
17 | | -請使用 GitHub Copilot Agent 模式幫我設置教學專案環境: |
18 | | -
|
19 | | -1. 首先確認目前的工作目錄: |
20 | | - - 執行 pwd 命令查看當前位置 |
21 | | - - 建議克隆位置:~/projects/ 或 ~/Github/ |
22 | | - - 請問我想要克隆到哪個目錄 |
23 | | -
|
24 | | -2. 克隆專案(需要您確認終端命令): |
25 | | - mkdir -p [選定的目錄] |
26 | | - cd [選定的目錄] |
27 | | - git clone --recursive https://github.com/yulin0629/github-copilot-tutorial.git |
28 | | -
|
29 | | -3. 檢查專案是否完整克隆: |
30 | | - cd github-copilot-tutorial |
31 | | - ls -la |
32 | | - 確認有 8 個場景資料夾和 .gitmodules 檔案 |
33 | | -
|
34 | | -4. 如果場景 8 (submodule) 沒有內容,執行: |
35 | | - git submodule update --init --recursive |
36 | | -
|
37 | | -5. 讀取並顯示 index.html 的前 20 行,確認專案正確 |
38 | | -
|
39 | | -6. 使用命令開啟新的編輯器視窗(需要您確認): |
40 | | - - VS Code: code github-copilot-tutorial |
41 | | - - VS Code Insiders: code-insiders github-copilot-tutorial |
42 | | - - Cursor: cursor github-copilot-tutorial |
43 | | - |
44 | | - 如果命令不存在,請先安裝: |
45 | | - - VS Code: 在命令面板執行 "Shell Command: Install 'code' command in PATH" |
46 | | - - Cursor: 在設定中啟用命令行工具 |
47 | | -
|
48 | | -7. 在新視窗中完成後續設定: |
49 | | - 請在新開啟的視窗中繼續以下步驟: |
50 | | - - 開啟新的 Copilot Chat |
51 | | - - 確認 GitHub Copilot 擴充套件已安裝 |
52 | | - - 設定語言偏好:修改 settings.json 加入 "github.copilot.chat.localeOverride": "zh-TW" |
53 | | - - 開啟 index.html 預覽教學內容 |
54 | | -
|
55 | | -注意事項: |
56 | | -- Agent 模式執行終端命令需要您的確認 |
57 | | -- 新視窗開啟後,原視窗的 Chat 對話將無法控制新視窗 |
58 | | -- 請在新視窗中開始教學課程 |
59 | | -
|
60 | | ---- |
61 | | -
|
62 | | -### 新視窗初始化提示詞 |
63 | | -
|
64 | | -在新視窗開啟後,複製以下提示詞到 Copilot Chat: |
65 | | -
|
66 | | -``` |
67 | | -請使用 Agent 模式幫我初始化 GitHub Copilot 教學專案環境: |
68 | | - |
69 | | -1. 檢查專案結構完整性: |
70 | | - - 確認有 8 個場景資料夾(01-first-experience 到 08-comprehensive-project) |
71 | | - - 檢查場景 8 是否為完整的 git submodule |
72 | | - - 如果有缺失,請提醒我需要執行的命令 |
73 | | - |
74 | | -2. 設定開發環境: |
75 | | - - 確認 GitHub Copilot 擴充套件已啟用 |
76 | | - - 檢查語言設定是否為繁體中文(github.copilot.chat.localeOverride: zh-TW) |
77 | | - - 確認 .github/copilot-instructions.md 存在 |
78 | | - |
79 | | -3. 準備教學環境: |
80 | | - - 開啟 index.html 在瀏覽器中預覽 |
81 | | - - 顯示專案的基本資訊和結構 |
82 | | - - 提供開始學習的建議順序 |
83 | | - |
84 | | -完成後請給我一個簡短的狀態報告,並建議從哪個場景開始學習。 |
85 | | -``` |
86 | | -``` |
87 | | - |
88 | | -</details> |
89 | | - |
90 | 11 | ## 取得教學專案 |
91 | 12 |
|
92 | 13 | ```bash |
@@ -486,6 +407,85 @@ github-copilot-tutorial/ |
486 | 407 | } |
487 | 408 | ``` |
488 | 409 |
|
| 410 | +## Agent 快速設置 (複製整段給 Agent) |
| 411 | + |
| 412 | +<details> |
| 413 | +<summary>點擊展開 Agent 設置指令</summary> |
| 414 | + |
| 415 | +``` |
| 416 | +請使用 GitHub Copilot Agent 模式幫我設置教學專案環境: |
| 417 | +
|
| 418 | +1. 首先確認目前的工作目錄: |
| 419 | + - 執行 pwd 命令查看當前位置 |
| 420 | + - 建議克隆位置:~/projects/ 或 ~/Github/ |
| 421 | + - 請問我想要克隆到哪個目錄 |
| 422 | +
|
| 423 | +2. 克隆專案(需要您確認終端命令): |
| 424 | + mkdir -p [選定的目錄] |
| 425 | + cd [選定的目錄] |
| 426 | + git clone --recursive https://github.com/yulin0629/github-copilot-tutorial.git |
| 427 | +
|
| 428 | +3. 檢查專案是否完整克隆: |
| 429 | + cd github-copilot-tutorial |
| 430 | + ls -la |
| 431 | + 確認有 8 個場景資料夾和 .gitmodules 檔案 |
| 432 | +
|
| 433 | +4. 如果場景 8 (submodule) 沒有內容,執行: |
| 434 | + git submodule update --init --recursive |
| 435 | +
|
| 436 | +5. 讀取並顯示 index.html 的前 20 行,確認專案正確 |
| 437 | +
|
| 438 | +6. 使用命令開啟新的編輯器視窗(需要您確認): |
| 439 | + - VS Code: code github-copilot-tutorial |
| 440 | + - VS Code Insiders: code-insiders github-copilot-tutorial |
| 441 | + - Cursor: cursor github-copilot-tutorial |
| 442 | + |
| 443 | + 如果命令不存在,請先安裝: |
| 444 | + - VS Code: 在命令面板執行 "Shell Command: Install 'code' command in PATH" |
| 445 | + - Cursor: 在設定中啟用命令行工具 |
| 446 | +
|
| 447 | +7. 在新視窗中完成後續設定: |
| 448 | + 請在新開啟的視窗中繼續以下步驟: |
| 449 | + - 開啟新的 Copilot Chat |
| 450 | + - 確認 GitHub Copilot 擴充套件已安裝 |
| 451 | + - 設定語言偏好:修改 settings.json 加入 "github.copilot.chat.localeOverride": "zh-TW" |
| 452 | + - 開啟 index.html 預覽教學內容 |
| 453 | +
|
| 454 | +注意事項: |
| 455 | +- Agent 模式執行終端命令需要您的確認 |
| 456 | +- 新視窗開啟後,原視窗的 Chat 對話將無法控制新視窗 |
| 457 | +- 請在新視窗中開始教學課程 |
| 458 | +
|
| 459 | +--- |
| 460 | +
|
| 461 | +### 新視窗初始化提示詞 |
| 462 | +
|
| 463 | +在新視窗開啟後,複製以下提示詞到 Copilot Chat: |
| 464 | +
|
| 465 | +``` |
| 466 | +請使用 Agent 模式幫我初始化 GitHub Copilot 教學專案環境: |
| 467 | + |
| 468 | +1. 檢查專案結構完整性: |
| 469 | + - 確認有 8 個場景資料夾(01-first-experience 到 08-comprehensive-project) |
| 470 | + - 檢查場景 8 是否為完整的 git submodule |
| 471 | + - 如果有缺失,請提醒我需要執行的命令 |
| 472 | + |
| 473 | +2. 設定開發環境: |
| 474 | + - 確認 GitHub Copilot 擴充套件已啟用 |
| 475 | + - 檢查語言設定是否為繁體中文(github.copilot.chat.localeOverride: zh-TW) |
| 476 | + - 確認 .github/copilot-instructions.md 存在 |
| 477 | + |
| 478 | +3. 準備教學環境: |
| 479 | + - 開啟 index.html 在瀏覽器中預覽 |
| 480 | + - 顯示專案的基本資訊和結構 |
| 481 | + - 提供開始學習的建議順序 |
| 482 | + |
| 483 | +完成後請給我一個簡短的狀態報告,並建議從哪個場景開始學習。 |
| 484 | +``` |
| 485 | +``` |
| 486 | + |
| 487 | +</details> |
| 488 | + |
489 | 489 | ## 支援與協助 |
490 | 490 |
|
491 | 491 | 如遇到問題,請參考: |
|
0 commit comments