<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Claude on Justmaker's KB</title><link>https://justmaker.github.io/tags/claude/</link><description>Recent content in Claude on Justmaker's KB</description><generator>Hugo -- gohugo.io</generator><language>zh-tw</language><lastBuildDate>Sat, 05 Apr 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://justmaker.github.io/tags/claude/index.xml" rel="self" type="application/rss+xml"/><item><title>Claude Code vs GitHub Copilot：工程師實測比較</title><link>https://justmaker.github.io/post/ai-tools/claude-code-vs-github-copilot/</link><pubDate>Sat, 05 Apr 2025 00:00:00 +0000</pubDate><guid>https://justmaker.github.io/post/ai-tools/claude-code-vs-github-copilot/</guid><description>&lt;h2 id="前言">前言
&lt;/h2>&lt;p>AI coding assistant 已經是日常開發的標配工具。我同時使用 Claude Code 和 GitHub Copilot 超過半年，這篇分享實際使用的比較心得。&lt;/p>
&lt;blockquote>
&lt;p>⚠️ 這是 2025 年初的體驗，AI 工具迭代很快，結論可能很快過時。&lt;/p>&lt;/blockquote>
&lt;h2 id="測試環境">測試環境
&lt;/h2>&lt;ul>
&lt;li>&lt;strong>日常工作&lt;/strong>：Vue.js 前端 + Python/Go 後端 + Shell scripts&lt;/li>
&lt;li>&lt;strong>使用場景&lt;/strong>：寫新功能、debug、code review、重構、寫文件&lt;/li>
&lt;li>&lt;strong>Claude Code&lt;/strong> 透過 OpenClaw agent 使用&lt;/li>
&lt;li>&lt;strong>GitHub Copilot&lt;/strong> 在 VS Code 中使用&lt;/li>
&lt;/ul>
&lt;h2 id="比較維度">比較維度
&lt;/h2>&lt;h3 id="1-程式碼生成品質">1. 程式碼生成品質
&lt;/h3>&lt;p>&lt;strong>Copilot&lt;/strong> 擅長：&lt;/p>
&lt;ul>
&lt;li>行內補完，手感很好&lt;/li>
&lt;li>根據上下文自動補完函式名、參數&lt;/li>
&lt;li>重複模式的程式碼（測試、CRUD）&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Claude Code&lt;/strong> 擅長：&lt;/p>
&lt;ul>
&lt;li>完整函式/模組的生成&lt;/li>
&lt;li>跨檔案的重構&lt;/li>
&lt;li>理解複雜需求後一次產出正確程式碼&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>結論&lt;/strong>：小粒度用 Copilot，大粒度用 Claude Code。&lt;/p>
&lt;h3 id="2-程式碼理解力">2. 程式碼理解力
&lt;/h3>&lt;p>這是最大的差異。&lt;/p>
&lt;p>Claude Code 可以讀完整個 repo 的結構、理解 module 之間的關係，然後做出跨檔案的修改。Copilot 主要看當前檔案和相鄰檔案。&lt;/p>
&lt;p>實測：給一個「把這個元件的狀態管理從 local state 改成 Pinia」的需求：&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Copilot&lt;/strong>：只改了當前檔案，其他引用點要自己找&lt;/li>
&lt;li>&lt;strong>Claude Code&lt;/strong>：一次改完所有相關檔案，包括 store 定義、元件引用、測試&lt;/li>
&lt;/ul>
&lt;h3 id="3-debug-能力">3. Debug 能力
&lt;/h3>&lt;p>&lt;strong>Claude Code&lt;/strong> 明顯勝出。可以：&lt;/p>
&lt;ul>
&lt;li>讀 error log → 定位問題 → 提出修復&lt;/li>
&lt;li>理解 stack trace 的上下文&lt;/li>
&lt;li>跨多個 service 追蹤問題&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Copilot&lt;/strong> 的 debug 建議通常比較表面，需要你自己縮小範圍。&lt;/p>
&lt;h3 id="4-工作流整合">4. 工作流整合
&lt;/h3>&lt;table>
&lt;thead>
&lt;tr>
&lt;th>面向&lt;/th>
&lt;th>Copilot&lt;/th>
&lt;th>Claude Code&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>IDE 整合&lt;/td>
&lt;td>✅ 原生 VS Code&lt;/td>
&lt;td>❌ CLI/Agent&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>即時補完&lt;/td>
&lt;td>✅ 毫秒級&lt;/td>
&lt;td>❌ 不適用&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>批量操作&lt;/td>
&lt;td>❌ 單檔為主&lt;/td>
&lt;td>✅ 跨檔案&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Git 操作&lt;/td>
&lt;td>❌ 不能&lt;/td>
&lt;td>✅ 可以 commit/push&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>自動化&lt;/td>
&lt;td>❌ 需手動觸發&lt;/td>
&lt;td>✅ 可以背景執行&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h2 id="我的用法">我的用法
&lt;/h2>&lt;p>兩個都用，各取所長：&lt;/p>
&lt;ol>
&lt;li>&lt;strong>寫程式時&lt;/strong>：Copilot 開著，享受行內補完&lt;/li>
&lt;li>&lt;strong>大重構/新功能&lt;/strong>：派 Claude Code（透過 OpenClaw）跑&lt;/li>
&lt;li>&lt;strong>Debug&lt;/strong>：先自己看，看不出來就丟給 Claude Code&lt;/li>
&lt;li>&lt;strong>Code Review&lt;/strong>：Claude Code，可以讀完整個 MR&lt;/li>
&lt;/ol>
&lt;h2 id="總結">總結
&lt;/h2>&lt;table>
&lt;thead>
&lt;tr>
&lt;th>&lt;/th>
&lt;th>Copilot&lt;/th>
&lt;th>Claude Code&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>最佳場景&lt;/strong>&lt;/td>
&lt;td>日常寫碼、行內補完&lt;/td>
&lt;td>大型任務、重構、debug&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>學習曲線&lt;/strong>&lt;/td>
&lt;td>低&lt;/td>
&lt;td>中&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>成本&lt;/strong>&lt;/td>
&lt;td>$10-19/月&lt;/td>
&lt;td>依 token 計費&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>推薦度&lt;/strong>&lt;/td>
&lt;td>⭐⭐⭐⭐&lt;/td>
&lt;td>⭐⭐⭐⭐⭐&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>不是非此即彼的選擇。最佳策略是兩者搭配使用。&lt;/p></description></item></channel></rss>