VS Code 中的 GitHub Copilot 設定參考

本文章列出了 Visual Studio Code 中 GitHub Copilot 的組態設定。關於在 VS Code 中管理設定的一般資訊,請參考使用者與工作區設定

團隊持續致力於改進 VS Code 中的 Copilot 並新增功能。部分功能仍處於實驗階段。歡迎試用並在我們的 issue 頁面分享您的回饋。取得更多關於 VS Code 功能生命週期的資訊。

提示

如果您尚未擁有 Copilot 訂閱,可以透過註冊 Copilot 免費方案來免費使用 Copilot,並獲得每月一定額度的行內建議與 AI 點數。

重要

自 2026 年 4 月 20 日起,Copilot Pro、Copilot Pro+、Max 及學生方案的新註冊將暫時暫停。

一般設定

設定與描述 預設值
chat.commandCenter.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟
控制是否在 VS Code 標題列顯示聊天選單。
true
workbench.settings.showAISearchToggle 在 VS Code 中開啟 在 VS Code Insiders 中開啟
啟用在設定編輯器中使用 AI 搜尋設定的功能。
true
workbench.commandPalette.experimental.askChatLocation 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
控制指令面板(Command Palette)應在何處詢問聊天問題。
"chatView"
search.searchView.semanticSearchBehavior 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (預覽)
設定在「搜尋」檢視中執行語意搜尋的時機:手動(預設)、未找到文字搜尋結果時,或永遠執行。
"manual"
search.searchView.keywordSuggestions 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (預覽)
控制是否在「搜尋」檢視中顯示關鍵字建議。
false
chat.disableAIFeatures 在 VS Code 中開啟 在 VS Code Insiders 中開啟
停用並隱藏 VS Code 中的內建 AI 功能(例如聊天和內嵌建議),並停用 Copilot 擴充功能。
false

程式碼編輯設定

設定與描述 預設值
github.copilot.editor.enableCodeActions 在 VS Code 中開啟 在 VS Code Insiders 中開啟
控制 Copilot 指令在可用時是否顯示為「程式碼動作」(Code Actions)。
true
github.copilot.renameSuggestions.triggerAutomatically 在 VS Code 中開啟 在 VS Code Insiders 中開啟
產生符號重新命名的建議。
true
github.copilot.enable 在 VS Code 中開啟 在 VS Code Insiders 中開啟
針對指定的語言啟用或停用內嵌建議。
{ "*": true, "plaintext": false, "markdown": false, "scminput": false }
github.copilot.nextEditSuggestions.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟 此設定由組織層級管理。請聯絡您的管理員進行更改。
啟用下一項編輯建議 (NES)。
true
editor.inlineSuggest.edits.allowCodeShifting 在 VS Code 中開啟 在 VS Code Insiders 中開啟
設定 NES 是否可以移動您的程式碼以顯示建議。
"always"
editor.inlineSuggest.edits.renderSideBySide 在 VS Code 中開啟 在 VS Code Insiders 中開啟
設定 NES 是否在可能的情況下並排顯示較大的建議,或者 Copilot NES 是否應始終在相關程式碼下方顯示較大的建議。
"auto"
github.copilot.nextEditSuggestions.fixes 在 VS Code 中開啟 在 VS Code Insiders 中開啟
啟用基於診斷結果(波浪線)的下一項編輯建議。例如,遺失的匯入。
true
editor.inlineSuggest.edits.showCollapsed 在 VS Code 中開啟 在 VS Code Insiders 中開啟
僅當您按下 Tab 鍵導覽至建議或滑鼠停留在邊界箭頭上時,才在編輯器中顯示 NES 程式碼變更。
false
editor.inlineSuggest.fontFamily 在 VS Code 中開啟 在 VS Code Insiders 中開啟
設定內嵌完成內容的字型家族。
"default"
editor.inlineSuggest.showToolbar 在 VS Code 中開啟 在 VS Code Insiders 中開啟
啟用或停用內嵌完成內容出現的工具列。
"onHover"
editor.inlineSuggest.minShowDelay 在 VS Code 中開啟 在 VS Code Insiders 中開啟
顯示內嵌建議前等待的時間(毫秒)。
0

聊天設定

設定與描述 預設值
github.copilot.chat.localeOverride 在 VS Code 中開啟 在 VS Code Insiders 中開啟
指定聊天回應的地區設定,例如 enfr
"auto"
github.copilot.chat.useProjectTemplates 在 VS Code 中開啟 在 VS Code Insiders 中開啟
使用 /new 時,將相關的 GitHub 專案作為起始專案使用。
true
github.copilot.chat.scopeSelection 在 VS Code 中開啟 在 VS Code Insiders 中開啟
如果您使用 /explain 但作用中的編輯器沒有選取內容時,是否提示輸入特定的符號範圍。
false
github.copilot.chat.terminalChatLocation 在 VS Code 中開啟 在 VS Code Insiders 中開啟
控制從終端機發出的聊天查詢應在何處開啟。
"chatView"
chat.detectParticipant.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟
在「聊天」檢視中啟用聊天參與者偵測。
true
chat.artifacts.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
在聊天中啟用或停用成品面板 (artifacts panel)(預覽)。
false
chat.artifacts.rules.byMimeType 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
根據 MIME 類型模式從工具結果中提取成品的規則。將 MIME 類型模式(例如 "image/*")對應到群組組態。
{ "image/*": { "groupName": "Screenshots", "onlyShowGroup": true } }
chat.artifacts.rules.byFilePath 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
根據檔案路徑 Glob 模式從寫入的檔案中提取成品的規則。將 Glob 模式(例如 "**/*plan*.md")對應到群組組態。
{ "**/*plan*.md": { "groupName": "Plans" } }
chat.artifacts.rules.byMemoryFilePath 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
根據記憶體檔案路徑 Glob 模式從記憶體工具寫入中提取成品的規則。將 Glob 模式對應到群組組態。
{ "**/*plan*.md": { "groupName": "Plans" } }
chat.checkpoints.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟
在聊天中啟用或停用檢查點 (checkpoints)
true
chat.checkpoints.showFileChanges 在 VS Code 中開啟 在 VS Code Insiders 中開啟
在每次聊天請求結束時顯示檔案變更摘要。
false
chat.editRequests 在 VS Code 中開啟 在 VS Code Insiders 中開啟
啟用或停用編輯先前的聊天請求
"inline"
chat.editor.fontFamily 在 VS Code 中開啟 在 VS Code Insiders 中開啟
聊天程式碼區塊中的字型家族。
"default"
chat.editor.fontSize 在 VS Code 中開啟 在 VS Code Insiders 中開啟
聊天程式碼區塊中的字型大小(像素)。
14
chat.editor.fontWeight 在 VS Code 中開啟 在 VS Code Insiders 中開啟
聊天程式碼區塊中的字型粗細。
"default"
chat.editor.lineHeight 在 VS Code 中開啟 在 VS Code Insiders 中開啟
聊天程式碼區塊中的行高(像素)。
0
chat.editor.wordWrap 在 VS Code 中開啟 在 VS Code Insiders 中開啟
切換聊天程式碼區塊中的自動換行。
"off"
chat.editing.confirmEditRequestRemoval 在 VS Code 中開啟 在 VS Code Insiders 中開啟
在復原編輯前進行確認。
true
chat.editing.confirmEditRequestRetry 在 VS Code 中開啟 在 VS Code Insiders 中開啟
在重新執行上一次編輯前進行確認。
true
chat.editing.autoAcceptDelay 在 VS Code 中開啟 在 VS Code Insiders 中開啟
設定自動接受建議編輯的延遲時間,使用 0 可停用自動接受。
0
chat.editing.revealNextChangeOnResolve 在 VS Code 中開啟 在 VS Code Insiders 中開啟
控制在保留或復原聊天編輯後,編輯器是否自動顯示下一個變更。
true
chat.fontFamily 在 VS Code 中開啟 在 VS Code Insiders 中開啟
聊天中 Markdown 內容的字型家族。
"default"
chat.fontSize 在 VS Code 中開啟 在 VS Code Insiders 中開啟
聊天中 Markdown 內容的字型大小(像素)。
13
chat.notifyWindowOnConfirmation 在 VS Code 中開啟 在 VS Code Insiders 中開啟
設定何時在聊天工作階段需要使用者輸入時顯示作業系統通知:off 表示從不顯示通知,windowNotFocused(預設)表示僅在 VS Code 視窗未取得焦點時顯示通知,always 表示永遠顯示通知。
"windowNotFocused"
chat.notifyWindowOnResponseReceived 在 VS Code 中開啟 在 VS Code Insiders 中開啟
設定何時在收到聊天回應時顯示作業系統通知:off 表示從不顯示通知,windowNotFocused(預設)表示僅在 VS Code 視窗未取得焦點時顯示通知,always 表示永遠顯示通知。
"windowNotFocused"
chat.requestQueuing.defaultAction 在 VS Code 中開啟 在 VS Code Insiders 中開啟
設定當請求正在處理時,「傳送」按鈕的預設動作:queue 將訊息加入佇列,steer 發出信號要求目前請求讓出執行權。
"queue"
chat.tools.terminal.autoReplyToPrompts 在 VS Code 中開啟 在 VS Code Insiders 中開啟
使用預設答案自動回覆終端機提示。
false
setting(chat.tools.terminal.terminalProfile.<platform>)
設定每個平台上用於聊天終端機指令的終端機設定檔。
""
chat.hookFilesLocations 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (預覽)
設定額外的勾點 (hook) 檔案位置。指定資料夾路徑(會載入所有 *.json 檔案)或直接指定到 .json 檔案。僅支援相對路徑與波浪號路徑。
{}
chat.useCustomAgentHooks 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (預覽)
啟用自訂代理程式 frontmatter 中定義的代理程式範圍勾點。啟用後,.agent.md 檔案中的勾點僅會在該代理程式為作用中時執行。
false
chat.useAgentsMdFile 在 VS Code 中開啟 在 VS Code Insiders 中開啟
啟用或停用將 AGENTS.md 檔案作為聊天請求的內容來源。
true
chat.math.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟
啟用或停用聊天中使用 KaTeX 的數學公式算繪。
false
chat.viewTitle.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (預覽)
在聊天標頭中顯示目前聊天工作階段的標題。
true
github.copilot.chat.codesearch.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (預覽)
當在提示詞中使用 #codebase 時,Copilot 會自動探索需要編輯的相關檔案。
false
chat.emptyState.history.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
在聊天檢視的空白狀態顯示最近的聊天記錄。
false
imageCarousel.chat.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
啟用圖片輪播功能,以便瀏覽聊天回應中的圖片。選取工具結果或助理訊息中的圖片藥丸即可開啟輪播檢視。
false
chat.sendElementsToChat.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
啟用將整合瀏覽器中的元素發送到聊天檢視作為上下文。
true
chat.sendElementsToChat.attachCSS 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
將整合瀏覽器中的元素新增至聊天內容時,一併包含 CSS 樣式。
true
chat.sendElementsToChat.attachImages 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
將整合瀏覽器中的元素新增至聊天內容時,一併包含圖片。
true
workbench.browser.enableChatTools 在 VS Code 中開啟 在 VS Code Insiders 中開啟 此設定由組織層級管理。請聯絡您的管理員進行更改。 (實驗性)
啟用瀏覽器工具,讓代理程式可以與整合瀏覽器中的頁面互動。
true
chat.useClaudeMdFile 在 VS Code 中開啟 在 VS Code Insiders 中開啟
啟用或停用將 CLAUDE.md 檔案作為常駐自訂指令使用。
true
chat.useNestedAgentsMdFiles 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
啟用或停用將工作區子資料夾中的 AGENTS.md 檔案作為聊天請求的上下文使用。
false
github.copilot.chat.customOAIModels 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (已棄用)
設定用於聊天的自訂 OpenAI 相容模型。已棄用,改為推薦使用自訂端點提供者,該提供者支援 Chat Completions、Responses 和 Messages API。
[]
chat.utilityModel 在 VS Code 中開啟 在 VS Code Insiders 中開啟
覆寫用於內建工具流程 (utility flows) 的語言模型,例如產生標題、摘要和後備回應。
"Default"
chat.utilitySmallModel 在 VS Code 中開啟 在 VS Code Insiders 中開啟
覆寫用於快速、輕量級工具流程的語言模型,例如提交訊息、重新命名建議和意圖偵測。建議使用快速且成本較低的模型。
"Default"
github.copilot.chat.edits.suggestRelatedFilesFromGitHistory 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
在聊天上下文建議來自 git 歷史記錄的相關檔案。
true
github.copilot.chat.localIndex.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟
啟用本機工作階段追蹤,用於工作階段洞察 (session insights)/chronicle 指令。
true

代理程式設定

設定與描述 預設值
chat.agent.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟 此設定由組織層級管理。請聯絡您的管理員進行更改。
啟用或停用使用代理程式(需要 VS Code 1.99 或更新版本)。
true
chat.agent.maxRequests 在 VS Code 中開啟 在 VS Code Insiders 中開啟
Copilot 使用代理程式可進行的最大請求數。
25
github.copilot.chat.agent.autoFix 在 VS Code 中開啟 在 VS Code Insiders 中開啟
自動診斷並修復產生的程式碼變更中的問題。
true
chat.mcp.access 在 VS Code 中開啟 在 VS Code Insiders 中開啟 此設定由組織層級管理。請聯絡您的管理員進行更改。
管理哪些模型內容協定 (MCP) 伺服器可在 VS Code 中使用。
true
chat.mcp.discovery.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟
設定從其他應用程式自動發現 MCP 伺服器組態。
false
chat.mcp.serverSampling 在 VS Code 中開啟 在 VS Code Insiders 中開啟
設定哪些模型會暴露給 MCP 伺服器進行採樣。
{}
chat.mcp.apps.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
啟用或停用 MCP 應用程式,這是由 MCP 伺服器提供的豐富使用者介面。
true
chat.tools.compressOutput.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (預覽)
在將大型終端機輸出傳送到模型之前進行壓縮,以減少上下文視窗的使用。這會收合未變更的 diff區塊、捨棄鎖定檔案 (lockfile) 的 diff,並剔除安裝進度資訊。
false
chat.tools.riskAssessment.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
在終端機指令確認上顯示 AI 產生的風險徽章,指示指令是安全的、需要謹慎,還是應仔細審查。
true
chat.tools.terminal.autoApprove 在 VS Code 中開啟 在 VS Code Insiders 中開啟
控制使用代理程式時,哪些終端機指令會自動核准。指令可以設定為 true(自動核准)或 false(需要核准)。透過在模式前後加上 / 字元,可以使用規則運算式。
{ "rm": false, "rmdir": false, "del": false, "kill": false, "curl": false, "wget": false, "eval": false, "chmod": false, "chown": false, "/^Remove-Item\\b/i": false }
chat.tools.terminal.enableAutoApprove 在 VS Code 中開啟 在 VS Code Insiders 中開啟 此設定由組織層級管理。請聯絡您的管理員進行更改。
啟用或停用終端機指令的自動核准。
true
chat.tools.edits.autoApprove 在 VS Code 中開啟 在 VS Code Insiders 中開啟
設定哪些檔案在套用編輯前需要核准。使用 Glob 模式來比對工作區中的檔案路徑。
{}
chat.tools.terminal.outputLocation 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
設定終端機指令輸出顯示的位置:在聊天內顯示或在整合終端機中顯示。
"chat"
chat.tools.terminal.enforceTimeoutFromModel 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
控制是否強制執行代理程式為終端機指令指定的逾時值。啟用後,代理程式會在指定的持續時間後停止追蹤該指令,並傳回目前為止已收集到的輸出。
true
chat.tools.terminal.ignoreDefaultAutoApproveRules 在 VS Code 中開啟 在 VS Code Insiders 中開啟
忽略終端機指令的預設自動核准規則。
false
chat.tools.global.autoApprove 在 VS Code 中開啟 在 VS Code Insiders 中開啟 此設定由組織層級管理。請聯絡您的管理員進行更改。
自動核准所有工具 - 此設定會停用重要的安全保護
false
chat.autopilot.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
控制權限選擇器中是否可以使用自動駕駛 (Autopilot) 權限層級。啟用後,自動駕駛會自動核准所有工具呼叫,並持續執行直到任務完成。
true
chat.permissions.default 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
為新的聊天工作階段設定預設的權限層級。選項:default(預設核准)、autoApprove(略過核准)、autopilot(自動駕駛)。您仍然可以在每個工作階段中更改權限層級。如果企業政策停用自動核准,則新工作階段將使用「預設核准」。
"default"
chat.tools.urls.autoApprove 在 VS Code 中開啟 在 VS Code Insiders 中開啟
控制哪些 URL 請求與回應會自動核准
[]
chat.agent.thinking.collapsedTools 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
設定在聊天對話中,預設是要收合還是展開工具呼叫詳細資訊。
always
chat.agent.thinkingStyle 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
設定在聊天中如何呈現思考 Token。
fixedScrolling
chat.mcp.autoStart 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
當偵測到 MCP 組態變更時,自動啟動 MCP 伺服器。
newAndOutdated
chat.tools.eligibleForAutoApproval 在 VS Code 中開啟 在 VS Code Insiders 中開啟 此設定由組織層級管理。請聯絡您的管理員進行更改。 (實驗性)
設定哪些工具在被代理程式使用前需要手動核准。
[]
chat.tools.terminal.blockDetectedFileWrites 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
對於執行工作區外部檔案寫入的終端機指令,要求使用者核准。當啟用工作階段層級的指令核准時,寫入作業系統暫存資料夾(macOS 和 Linux 為 /tmp,Windows 為 %TEMP%)的指令不受此限制。
outsideWorkspace
chat.agent.sandbox.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟 此設定由組織層級管理。請聯絡您的管理員進行更改。 (預覽)
啟用由代理程式執行的代理程式指令沙盒化(僅限 macOS 和 Linux)。可能的值:off(停用)、on(完全檔案系統與網路隔離)、allowNetwork(僅檔案系統隔離,允許所有對外網路流量)。啟用後,指令會自動核准並受限存取。
關閉
chat.agent.sandbox.FileSystem.linux 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (預覽)
設定 Linux 上沙盒化代理程式指令的檔案系統存取規則。支援 allowReadallowWritedenyReaddenyWrite 屬性。
{}
chat.agent.sandbox.FileSystem.mac 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (預覽)
設定 macOS 上沙盒化代理程式指令的檔案系統存取規則。支援 allowReadallowWritedenyReaddenyWrite 屬性。
{}
chat.agent.networkFilter 在 VS Code 中開啟 在 VS Code Insiders 中開啟 此設定由組織層級管理。請聯絡您的管理員進行更改。
為代理程式工具(fetch 工具、整合瀏覽器)啟用網路網域篩選。啟用後,網路存取權將根據 chat.agent.allowedNetworkDomains 在 VS Code 中開啟 在 VS Code Insiders 中開啟 此設定由組織層級管理。請聯絡您的管理員進行更改。 chat.agent.deniedNetworkDomains 在 VS Code 中開啟 在 VS Code Insiders 中開啟 此設定由組織層級管理。請聯絡您的管理員進行更改。 進行限制。停用時,不應用任何篩選。
false
chat.agent.allowedNetworkDomains 在 VS Code 中開啟 在 VS Code Insiders 中開啟 此設定由組織層級管理。請聯絡您的管理員進行更改。
設定代理程式工具進行網路存取的允許網域。僅在 chat.agent.networkFilter 在 VS Code 中開啟 在 VS Code Insiders 中開啟 此設定由組織層級管理。請聯絡您的管理員進行更改。 啟用時才會生效。當沙盒化也啟用時,這些規則亦適用於終端機指令。當允許清單與拒絕清單皆為空時,所有網域皆會被封鎖。支援如 *.example.com 的萬用字元。
[]
chat.agent.deniedNetworkDomains 在 VS Code 中開啟 在 VS Code Insiders 中開啟 此設定由組織層級管理。請聯絡您的管理員進行更改。
設定代理程式工具網路存取的拒絕網域。僅在 chat.agent.networkFilter 在 VS Code 中開啟 在 VS Code Insiders 中開啟 此設定由組織層級管理。請聯絡您的管理員進行更改。 啟用時才會生效。拒絕網域的優先順序高於允許網域。支援如 *.example.com 的萬用字元。
[]
github.copilot.chat.newWorkspaceCreation.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
啟用在聊天中建立新工作區骨架的工具。
true
chat.planWidget.inlineEditor.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟
在計畫控制項內使用內嵌編輯器來編輯計畫,而不需開啟額外的編輯器索引標籤。
true
chat.planAgent.defaultModel 在 VS Code 中開啟 在 VS Code Insiders 中開啟
為計畫代理程式選擇預設語言模型。
"Auto (Vendor Default)"
github.copilot.chat.implementAgent.model 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
選擇在計畫之後用於實作步驟的語言模型。
``
github.copilot.chat.planAgent.additionalTools 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
在研究與規劃階段為計畫代理程式提供額外工具的存取權。
[]
github.copilot.chat.additionalReadAccessFolders 在 VS Code 中開啟 在 VS Code Insiders 中開啟
為內建代理程式工具提供目前工作區之外的額外唯讀資料夾存取權。
[]
github.copilot.chat.claudeAgent.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟 此設定由組織層級管理。請聯絡您的管理員進行更改。
啟用或停用由 Anthropic 的 Claude Agent SDK 支援的 Claude 代理程式工作階段。
true
github.copilot.chat.claudeAgent.allowDangerouslySkipPermissions 在 VS Code 中開啟 在 VS Code Insiders 中開啟
為 Claude 代理程式略過所有權限檢查。請僅在隔離的沙盒環境中啟用此功能。
false
github.copilot.chat.agent.thinkingTool 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
在使用代理程式時啟用思考工具。
false
github.copilot.chat.summarizeAgentConversationHistory.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
當上下文視窗已滿時,自動摘要代理程式的對話記錄。
true
github.copilot.chat.virtualTools.threshold 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
工具數量的臨界值,超過此值將使用虛擬工具。虛擬工具會將類似的工具集分組,並允許模型按需啟用它們。這讓您可以突破每個聊天請求 128 個工具的限制。
128

代理程式工作階段

代理程式檢視 (Agents view) 提供了一個集中位置,用於管理本機聊天對話與遠端編碼代理程式工作階段。此檢視讓您能夠同時處理多個 AI 工作階段、追蹤其進度,並有效率地管理長期執行的任務。

設定與描述 預設值
workbench.startupEditor 在 VS Code 中開啟 在 VS Code Insiders 中開啟
將 VS Code 歡迎頁面設定為您的代理程式工作階段入口點。設為 agentSessionsWelcomePage 以顯示包含最近工作階段、內嵌聊天和快速動作的 VS Code 歡迎頁面
不適用 (N/A)
chat.viewSessions.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟
在「聊天」檢視中顯示代理程式工作階段清單。
true
chat.viewSessions.orientation 在 VS Code 中開啟 在 VS Code Insiders 中開啟
控制聊天檢視中工作階段清單的版面方向。
"sideBySide"
chat.editMode.hidden 在 VS Code 中開啟 在 VS Code Insiders 中開啟 此設定由組織層級管理。請聯絡您的管理員進行更改。
還原已棄用的多檔案程式碼編輯「編輯模式」。
true
chat.agentsControl.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
在指令中心啟用工作階段狀態指示器。會顯示未讀和處理中的工作階段徽章。
true
chat.agentsControl.clickBehavior 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
設定選取代理程式狀態指示器中的聊天圖示時的行為。
"cycle" (Insiders)
"default" (Stable)
chat.unifiedAgentsBar.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
將指令中心的搜尋方塊替換為統一的聊天與搜尋控制項。
false
github.copilot.chat.cli.remote.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟
啟用從 github.com 或 GitHub Mobile App 對 Copilot CLI 工作階段的遠端控制支援。
true

內嵌聊天設定

設定與描述 預設值
inlineChat.defaultModel 在 VS Code 中開啟 在 VS Code Insiders 中開啟
設定編輯器內嵌聊天的預設語言模型。您選擇的模型在工作階段期間會持續有效,但在 VS Code 重新載入後會重設為此設定的預設值。
不適用 (N/A)
inlineChat.askInChat 在 VS Code 中開啟 在 VS Code Insiders 中開啟
當檔案屬於作用中的聊天編輯工作階段時,按下 ⌘I (Windows, Linux Ctrl+I) 時,會在「聊天」檢視中使用「在聊天中詢問」,而不是開啟一般的內嵌聊天。停用時,一律開啟一般的內嵌聊天。
true
inlineChat.renderMode 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
設定內嵌聊天的顯示方式。hover:在浮動覆疊層顯示內嵌聊天,zone:在編輯器中的專用區域顯示內嵌聊天。
"hover"
inlineChat.finishOnType 在 VS Code 中開啟 在 VS Code Insiders 中開啟
當在變更區域外進行輸入時,結束編輯器內嵌聊天工作階段。
false
inlineChat.holdToSpeech 在 VS Code 中開啟 在 VS Code Insiders 中開啟
按住編輯器內嵌對話(inline chat)的鍵盤快速鍵(⌘I (Windows, Linux Ctrl+I))會自動啟用語音辨識。
true
editor.inlineSuggest.syntaxHighlightingEnabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟
顯示內嵌建議的語法突顯。
true
inlineChat.affordance 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
當您選取文字時顯示視覺提示,協助啟動內嵌對話。off:無提示,gutter:在行號區域顯示,editor:在游標位置以燈泡圖示顯示。
"off"
inlineChat.lineEmptyHint 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
在空白行顯示編輯器內嵌對話的提示。
false
inlineChat.lineNaturalLanguageHint 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
當某一行主要包含單字時,立即觸發編輯器內嵌對話。
true
github.copilot.chat.editor.temporalContext.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
將最近檢視與編輯過的檔案包含在編輯器內嵌對話的背景資訊中。
false

程式碼審查設定

設定與描述 預設值
github.copilot.chat.reviewSelection.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟 此設定由組織層級管理。請聯絡您的管理員進行變更。 (預覽)
針對編輯器中選取的文字啟用 AI 程式碼審閱。
true
github.copilot.chat.reviewSelection.instructions 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (預覽)
自訂說明,這些說明會新增至使用 AI 審閱目前編輯器所選文字的請求中。
[]

原始碼控制設定

設定與描述 預設值
git.addAICoAuthor 在 VS Code 中開啟 在 VS Code Insiders 中開啟
針對 AI 產生的變更,在提交訊息中附加 Co-authored-by: Git 說明欄位。選項:off(無說明欄位)、chatAndAgent(針對 Copilot Chat 或代理程式模式變更的說明欄位)、all(針對所有 AI 產生的程式碼,包含內嵌完成功能的說明欄位)。請參閱 AI 共同作者歸屬
"chatAndAgent"

自訂指令設定

設定與描述 預設值
chat.instructionsFilesLocations 在 VS Code 中開啟 在 VS Code Insiders 中開啟
搜尋自訂說明檔案的位置。每個資料夾皆會遞迴搜尋,包含子目錄。相對路徑將從工作區的根資料夾進行解析。支援檔案路徑的 glob 模式。
{ ".github/instructions": true, "~/.claude/rules": false" }
chat.includeApplyingInstructions 在 VS Code 中開啟 在 VS Code Insiders 中開啟
自動將具有相符 applyTo 模式的說明檔案新增至對話請求中。
true
chat.includeReferencedInstructions 在 VS Code 中開啟 在 VS Code Insiders 中開啟
自動將透過 Markdown 連結參照的說明檔案新增至對話請求中。
false
github.copilot.chat.codeGeneration.useInstructionFiles 在 VS Code 中開啟 在 VS Code Insiders 中開啟
自動將 .github/copilot-instructions.md 中的自訂說明新增至對話請求中。
true
github.copilot.chat.commitMessageGeneration.instructions 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
使用 AI 產生提交訊息的自訂說明。
[]
github.copilot.chat.pullRequestDescriptionGeneration.instructions 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
使用 AI 產生提取請求(Pull Request)標題與描述的自訂說明。
[]
github.copilot.chat.organizationInstructions.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟
啟用在 GitHub 組織層級定義的自訂說明探索功能。
true
chat.useCustomizationsInParentRepositories 在 VS Code 中開啟 在 VS Code Insiders 中開啟
啟用在 父儲存庫資料夾 中探索代理程式自訂(說明、提示、代理程式、技能、掛鉤)的功能。對於開啟子資料夾而非儲存庫根目錄的 Monorepo 設定特別有用。
false

可重複使用的提示詞檔案設定

設定與描述 預設值
chat.promptFilesLocations 在 VS Code 中開啟 在 VS Code Insiders 中開啟
搜尋提示檔案的位置。相對路徑將從工作區的根資料夾進行解析。支援檔案路徑的 glob 模式。
{ ".github/prompts": true }
chat.promptFilesRecommendations 在 VS Code 中開啟 在 VS Code Insiders 中開啟
開啟新的對話階段時,啟用或停用提示檔案建議。此為提示檔案名稱與布林值或 when 子句的鍵值對列表。
[]

自訂代理程式設定

設定與描述 預設值
chat.agentFilesLocations 在 VS Code 中開啟 在 VS Code Insiders 中開啟
搜尋自訂代理程式檔案的位置。相對路徑將從工作區的根資料夾進行解析。支援使用者特定路徑的主目錄展開(~)。
{ ".github/agents": true }
github.copilot.chat.cli.customAgents.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟
啟用使用來自 GitHub 背景代理程式階段的自訂代理程式。
false
github.copilot.chat.organizationCustomAgents.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟
啟用在 GitHub 組織層級定義的自訂代理程式探索功能。
true

代理程式技能設定

設定與描述 預設值
chat.useAgentSkills 在 VS Code 中開啟 在 VS Code Insiders 中開啟
啟用 VS Code 對 代理程式技能 的支援。
true
chat.agentSkillsLocations 在 VS Code 中開啟 在 VS Code Insiders 中開啟
搜尋代理程式技能的位置。相對路徑將從工作區的根資料夾進行解析。支援使用者特定路徑的主目錄展開(~)。
"chat.agentSkillsLocations": { ".github/skills": true,".claude/skills": true,"~/.copilot/skills": true,"~/.claude/skills": true}
github.copilot.chat.skillTool.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
啟用專用的技能工具以呼叫 代理程式技能。若要在個別子代理程式環境中使用 context: fork 執行技能,必須啟用此選項。
false

記憶體設定

設定與描述 預設值
github.copilot.chat.tools.memory.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (預覽)
啟用或停用內建的 記憶工具,此工具可讓代理程式在不同對話中儲存與回顧筆記。
true
github.copilot.chat.copilotMemory.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (預覽)
在 VS Code 中啟用 Copilot Memory 整合。Copilot Memory 是 GitHub 託管的記憶系統,可在多個 Copilot 介面中保留特定儲存庫的深入洞察。
false

可觀察性設定

設定與描述 預設值
github.copilot.chat.otel.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟
啟用針對 Copilot Chat 代理程式互動的 OpenTelemetry 發送功能。
false
github.copilot.chat.otel.exporterType 在 VS Code 中開啟 在 VS Code Insiders 中開啟
OTel 匯出類型:otlp-httpotlp-grpcconsolefile
"otlp-http"
github.copilot.chat.otel.otlpEndpoint 在 VS Code 中開啟 在 VS Code Insiders 中開啟
OTLP 收集器端點 URL。
"https://:4318"
github.copilot.chat.otel.outfile 在 VS Code 中開啟 在 VS Code Insiders 中開啟
使用 file 匯出類型時,JSON-lines 輸出的檔案路徑。
""
github.copilot.chat.otel.captureContent 在 VS Code 中開啟 在 VS Code Insiders 中開啟
在 OTel 範圍(spans)中擷取完整的提示與回應內容。可能會包含敏感資訊。
false

代理程式外掛程式設定

設定與描述 預設值
chat.plugins.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟 此設定由組織層級管理。請聯絡您的管理員進行變更。 (預覽)
啟用或停用對 代理程式外掛程式 的支援。
false
chat.plugins.marketplaces 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
設定額外的外掛程式市集 Git 儲存庫,以用於探索代理程式外掛程式。
["github/copilot-plugins", "github/awesome-copilot"]
chat.pluginLocations 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
透過將目錄路徑對應至啟用或停用狀態,以註冊本機複製或下載的代理程式外掛程式。
{}

偵錯設定

設定與描述 預設值
github.copilot.chat.agentDebugLog.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟
啟用 代理程式偵錯記錄 以及用於檢查對話階段的 /troubleshoot 斜線指令。
false
github.copilot.chat.agentDebugLog.fileLogging.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟
啟用代理程式偵錯記錄的檔案記錄功能,將偵錯事件寫入磁碟上的檔案中。
false
github.copilot.chat.startDebugging.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (預覽)
啟用對話檢視中實驗性的 /startDebugging 意圖,以產生偵錯設定。
true
github.copilot.chat.copilotDebugCommand.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (預覽)
啟用 copilot-debug 終端機指令。
true

測試設定

設定與描述 預設值
github.copilot.chat.generateTests.codeLens 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
針對目前測試覆蓋率資訊未涵蓋的符號,顯示產生測試(Generate tests)程式碼透鏡(Code Lens)。
false
github.copilot.chat.setupTests.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
啟用實驗性的 /setupTests 意圖,並在 /tests 產生中提供提示。
true

筆記本設定

設定與描述 預設值
notebook.experimental.generate 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
啟用產生(Generate)動作,以使用筆記本內嵌對話建立程式碼儲存格。
true
github.copilot.chat.edits.newNotebook.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
啟用編輯模式(已棄用)下的筆記本工具,以建立新的筆記本檔案。
true
github.copilot.chat.notebook.followCellExecution.enabled 在 VS Code 中開啟 在 VS Code Insiders 中開啟 (實驗性)
在編輯器中顯示目前正在執行的儲存格。
false

協助工具設定

設定與描述 預設值
inlineChat.accessibleDiffView 在 VS Code 中開啟 在 VS Code Insiders 中開啟
內嵌對話是否同時為其變更渲染無障礙差異檢視器。
"auto"
accessibility.signals.chatRequestSent 在 VS Code 中開啟 在 VS Code Insiders 中開啟
當對話請求發出時播放訊號(音效提示與/或宣告)。
{ "sound": "auto", "announcement": "auto" }
accessibility.signals.chatResponseReceived 在 VS Code 中開啟 在 VS Code Insiders 中開啟
當接收到回應時播放聲音/音效提示。
{ "sound": "auto" }
accessibility.signals.chatEditModifiedFile 在 VS Code 中開啟 在 VS Code Insiders 中開啟
當檔案被對話編輯所修改時播放聲音/音效提示。
{ "sound": "auto" }
accessibility.signals.chatUserActionRequired 在 VS Code 中開啟 在 VS Code Insiders 中開啟
當使用者需要在對話中採取行動時播放聲音/音效提示。
{ "sound": "auto", "announcement": "auto" }
accessibility.signals.lineHasInlineSuggestion 在 VS Code 中開啟 在 VS Code Insiders 中開啟
當游標位於具有內嵌建議的行上時播放聲音/音效提示。
{ "sound": "auto" }
accessibility.signals.nextEditSuggestion 在 VS Code 中開啟 在 VS Code Insiders 中開啟
當下一個編輯建議可用時播放聲音/音效提示。
{ "sound": "auto", "announcement": "auto" }
accessibility.verboseChatProgressUpdates 在 VS Code 中開啟 在 VS Code Insiders 中開啟
提供有關對話活動的詳細更新。
true
accessibility.verbosity.inlineChat 在 VS Code 中開啟 在 VS Code Insiders 中開啟
提供有關如何存取內嵌編輯器對話無障礙說明選單的資訊,並在輸入焦點位於該處時,以說明如何使用該功能的提示進行提醒。
true
accessibility.verbosity.inlineCompletions 在 VS Code 中開啟 在 VS Code Insiders 中開啟
提供有關如何存取內嵌建議懸停效果與無障礙檢視的資訊。
true
accessibility.verbosity.panelChat 在 VS Code 中開啟 在 VS Code Insiders 中開啟
提供有關當對話輸入焦點位於該處時,如何存取對話說明選單的資訊。
true
accessibility.voice.keywordActivation 在 VS Code 中開啟 在 VS Code Insiders 中開啟
控制是否辨識關鍵片語 'Hey Code' 以啟動語音對話階段。
"off"
accessibility.voice.autoSynthesize 在 VS Code 中開啟 在 VS Code Insiders 中開啟
控制當使用語音作為輸入時,是否應自動朗讀文字回應。
"off"
accessibility.voice.speechTimeout 在 VS Code 中開啟 在 VS Code Insiders 中開啟
在您停止說話後,語音辨識保持作用的持續時間(毫秒)。
1200
© . This site is unofficial and not affiliated with Microsoft.