File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4040### 階段 1:Agent 功能分析 (3分鐘)
4141
4242#### 步驟 1:讓 Agent 全面分析項目 (Agent)
43+ 1 . 開啟 Copilot Chat,選擇 ** Agent 模式**
44+ 2 . 點擊 📎 圖示,選擇以下檔案:
45+ - ` src/calculator.js `
46+ - ` src/dataProcessor.js `
47+ - ` src/utils.js `
48+ - ` src/validator.js `
49+ 3 . 輸入:
4350```
44- @workspace 請分析這個數據分析工具,理解所有功能模組,並評估測試的複雜度和挑戰。給我一個完整的功能地圖。
51+ 請分析這個數據分析工具,理解所有功能模組,並評估測試的複雜度和挑戰。給我一個完整的功能地圖。
4552```
53+ 💡 ** 使用模式:Agent**
4654
4755** ⚡ 觀察重點** :
4856- Agent 會主動讀取所有檔案
Original file line number Diff line number Diff line change @@ -49,13 +49,19 @@ Agent 開始作為**首席架構師**,不只實現功能,還要主導技術
4949### 階段 1:Agent 深度分析 (4分鐘)
5050
5151#### 步驟 1:讓 Agent 進行代碼考古 (Agent)
52+ 1 . 開啟 Copilot Chat,選擇 ** Agent 模式**
53+ 2 . 點擊 📎 圖示,選擇以下檔案:
54+ - ` legacy-code/monolith.js `
55+ - ` legacy-code/utils-old.js `
56+ 3 . 輸入:
5257```
53- @workspace 請對這個遺留電商系統進行深度分析,包括:
58+ 請對這個遺留電商系統進行深度分析,包括:
54591. 識別所有代碼異味和架構問題
55602. 分析業務邏輯和數據流
56613. 評估重構的複雜度和風險
57624. 給出整體的健康度評估報告
5863```
64+ 💡 ** 使用模式:Agent**
5965
6066** ⚡ 觀察重點** :
6167- Agent 會自主識別複雜的架構問題
Original file line number Diff line number Diff line change @@ -293,9 +293,10 @@ github-copilot-tutorial/
2932933 . ** 上下文提供** :清楚的註解和變數命名提升建議品質
294294
295295### 🎯 ** 功能組合使用**
296- 1 . ** @workspace + Agent** :讓 Agent 分析整個專案並執行複雜任務
297- 2 . ** 自訂指令 + NES** :指令確保風格一致,NES 提升編輯效率
298- 3 . ** Chat + Inline** :大方向用 Chat 討論,具體實作用 Inline Chat
296+ 1 . ** Ask 模式 + @workspace ** :深入分析整個專案結構和關係
297+ 2 . ** Agent 模式 + 檔案選擇** :針對特定檔案執行複雜任務
298+ 3 . ** 自訂指令 + NES** :指令確保風格一致,NES 提升編輯效率
299+ 4 . ** Chat + Inline** :大方向用 Chat 討論,具體實作用 Inline Chat
299300
300301## ⚠️ 關於斜槓指令(/ 指令)
301302
@@ -321,6 +322,11 @@ github-copilot-tutorial/
321322### ⚠️ 其他參與者實用性有限
322323** @terminal 、@vscode 、@github ** 等其他參與者實用性不高,建議專注學習 ** @workspace ** 即可。
323324
325+ ### ⚠️ ** 重要限制**
326+ - ** Agent 和 Edit 模式不支援 @workspace **
327+ - 只有 ** Ask 模式** 可以使用 @workspace 進行全專案分析
328+ - Agent/Edit 模式需要透過 📎 明確選擇要處理的檔案
329+
324330## ⚙️ ** 重要 VS Code 設定**
325331
326332### ** 必要核心設定**
You can’t perform that action at this time.
0 commit comments