參加你附近的 ,瞭解 VS Code 中的 AI 輔助開發。

開源人工智慧程式碼編輯器

下載 Visual Studio Code

使用 VS Code 即表示您同意其許可證隱私宣告

任何團隊的任何模型

從多個開箱即用的模型中選擇,或者帶上您自己的金鑰,從您首選的模型提供商和託管選項訪問模型。

GPT-5
自動 變數 GPT-5 mini 0x Claude Sonnet 4 1x Claude Sonnet 4.5 (預覽版) 1x GPT-5 1x GPT-5-Codex (預覽版) 1x 管理模型...

您的程式碼庫專家

您的程式碼庫在本地和遠端(GitHub 上)進行索引,以瞭解相關內容,從而實現快速、上下文感知的互動。

A VS Code chat prompt. The prompt includes codebase and file context by writing #codebase and #file:HistoryView.swift in the message. A VS Code chat prompt. The prompt includes codebase and file context by writing #codebase and #file:HistoryView.swift in the message.

像您的團隊一樣工作的人工智慧

使用自定義指令和可重複使用的提示檔案,根據您的工作流程、工具和專案定製互動。

Settings JSON for copilot instructions, the first set to `use React functional components', then including another file for extra instructions 'code-style.md'. Settings JSON for copilot instructions, the first set to `use React functional components', then including another file for extra instructions 'code-style.md'.

在 VS Code 中免費使用 AI 功能

無需試用。無需信用卡。只需您的 GitHub 帳戶。

免費試用

代理模式

處理複雜的、多步驟的任務。代理模式會讀取您的程式碼庫,建議跨檔案的編輯,執行終端命令,並響應編譯或測試失敗——所有這些都在一個迴圈中,直到任務完成。使用 VS Code 擴充套件和模型上下文協議 (MCP) 伺服器,進一步調整代理模式以適應您團隊的工作流程。

使用代理模式構建
VS Code window showing a code editor with projects.tsx open, alongside a chat panel in Agent mode. The chat discusses an open issue from GitHub. VS Code window showing a code editor with projects.tsx open, alongside a chat panel in Agent mode. The chat discusses an open issue from GitHub.

下一個編輯建議

當您編碼時,VS Code 會預測您的下一步操作。使用 Tab 鍵在編輯器中接受 AI 驅動的建議。它會根據您正在進行的編輯智慧地建議要更改的內容和位置。

使用 AI 驅動的建議進行編碼
Code editor showing a JavaScript file post.js. It defines a render method that renders a social media post by calling an external API. Next edit suggestions is suggesting how to complete the implementation. Code editor showing a JavaScript file post.js. It defines a render method that renders a social media post by calling an external API. Next edit suggestions is suggesting how to complete the implementation.

使用任何語言進行編碼

VS Code 支援幾乎所有主流程式語言。一些語言(如 JavaScript、TypeScript、CSS 和 HTML)已內建,但其他語言的擴充套件可以在 VS Code Marketplace 中找到。

JavaScript 圖示JavaScript
TypeScript 圖示TypeScript
Python 圖示Python
C# 圖示C#
C++ 圖示C++
HTML 圖示HTML
Java 圖示Java
JSON 圖示JSON
PHP 圖示PHP
Markdown 圖示Markdown
Powershell 圖示Powershell
YAML 圖示YAML

完全可自定義

自定義您的 VS Code UI 和佈局,使其符合您的編碼風格。

顏色主題允許您修改 VS Code 使用者介面中的顏色,以適應您的偏好和工作環境。

設定同步使您可以透過設定同步功能在您的 VS Code 例項之間共享您的使用者設定。

配置檔案允許您建立一組自定義設定,並在它們之間快速切換或與他人共享。

Selecting the GitHub Dark theme with a quick pick Selecting the GitHub Dark theme with a quick pick

隨時隨地編碼

無論您是連線到雲端、遠端倉庫,還是透過 Web 版 VS Code (vscode.dev) 在瀏覽器中,都可以在您最高效的地方進行編碼。

內建原始碼控制為您提供了開箱即用的 Git 支援。許多其他原始碼控制提供程式可以透過擴充套件獲得。

GitHub Codespaces 為任何活動提供雲端開發環境——無論是長期專案,還是像審查拉取請求這樣的短期任務。

vscode.dev in an Edge browser tab vscode.dev in an Edge browser tab

透過豐富功能進行編碼

編輯器還有更多功能。無論是使用內建功能還是豐富的擴充套件,每個人都能找到適合自己的東西。

© . This site is unofficial and not affiliated with Microsoft.