← Back to learning path
Chapter · Published

Use Codex in VS Code

Install the official Codex extension, work with file context, and review changes inside the VS Code editor.

Source: start/13-ide-vscode.md快速上手 (original language)
Chapter progress 0%Learning path progress 0% · 0/46 chapters completedContinue learning path →

Tip · Last checked

The VS Code workflow was checked on 2026-06-29. Extension availability and UI labels can change; use the Codex IDE documentation and Codex CLI documentation for current guidance.

Tip

This is the official OpenAI Codex extension, so you can use Codex conversations and code assistance directly in the editor.

Use Codex in VS Code

Install the extension

Open Extensions in VS Code, search for Codex, and choose the official publisher. Verify the publisher before installing a similarly named extension.

Open the task panel

Open a project file and select the Codex or ChatGPT icon to open the side panel. Sign in with the account that has access to the workspace.

Use file context

Type @ and select a file when the task has a clear scope. File context helps Codex inspect the relevant code without broad, unnecessary searches. Ask for a read-only explanation before requesting an edit.

Review the patch

Use the editor diff, tests, and diagnostics to review each change. The desktop app is better for multi-task orchestration, Skills, and Automations; the extension is convenient for an editor-centered loop. They can be used together.

Next step

Continue with Codex Cloud.

Reference screenshots

Reference screenshot

Reference screenshot

Reference screenshot

Reference screenshot

Reference tables

Codex 桌面 AppVS Code 插件
适合场景多任务管理、Skills、Automations边写代码边调用,贴近编辑器工作流
文件结构可见性需要切换界面直接在编辑器里查看
修改前后对比独立查看可结合编辑器 diff 查看
推荐用户需要并行任务或插件协作日常编码开发者

Further reading

KnowledgeAI Agents: From Core Concepts to ProductionKnowledgeDesigning Reliable AI Automation Workflows
Product Hub Demo · V0.3