YouTip LogoYouTip

Codex Ide

Codex IDE Extension Codex IDE Extension allows you to use Codex directly in your familiar development environment, seamlessly integrating into your daily coding workflow. * * * ## Supported IDEs Codex officially supports the following IDEs: | IDE | Extension ID | Installation Method | | --- | --- | --- | | **VS Code** | `openai.chatgpt` | vscode:extension/openai.chatgpt | | **VS Code Insiders** | `openai.chatgpt` | Extension Marketplace | | **Cursor** | `openai.chatgpt` | cursor:extension/openai.chatgpt | | **Windsurf** | `openai.chatgpt` | windsurf:extension/openai.chatgpt | * * * ## Installing the Extension ### VS Code Installation ## VS Code Installation # Method 1: Command Line Installation code --install-extension openai.chatgpt # Method 2: In VS Code # 1. Open the Extensions Panel (Cmd+Shift+X) # 2. Search for "Codex" or "ChatGPT" # 3. Click Install ### Cursor Installation ## Cursor Installation # Method 1: Command Line cursor --install-extension openai.chatgpt # Method 2: In Cursor # 1. Open the Extensions Panel # 2. Search for "Codex" # 3. Click Install > After installation, you need to log in with a ChatGPT account or OpenAI API Key to use it. * * * ## Core Features ### Automatic Context The IDE extension automatically passes the following as context to Codex: * List of currently open files * Selected text range in the editor * Current working directory information ### AI Conversation Chat with Codex directly in the IDE: * Open the Codex panel (shortcut or sidebar) * Enter your question or task description * Codex analyzes the current file and project and responds ### Code Actions After selecting code, right-click to execute: | Action | Function | | --- | --- | | **Explain** | Codex explains the selected code | | **Rewrite** | Rewrite the selected code as needed | | **Review** | Check code issues and improvement suggestions | | **Generate Tests** | Generate unit tests for the selected code | * * * ## Slash Commands Use slash commands in the Codex panel: | Command | Function | | --- | --- | | `/explain` | Explain the selected code | | `/fix` | Fix issues in the selected code | | `/test` | Generate tests for the selected code | | `/review` | Review the selected code | | `/plan` | Plan first, then execute | ## Slash Command Examples # Explain Code /explain # Fix Bug /fix this function throws error for null input # Plan New Feature /plan implement user authentication with JWT * * * ## Model Selection You can switch models below the input box: | Model | Features | | --- | --- | | **GPT-5.4** | Flagship model, suitable for complex tasks | | **GPT-5.4-mini** | Lightweight and fast, suitable for simple tasks | | **GPT-5.3-Codex** | Professional coding model | * * * ## Keyboard Shortcuts | Shortcut | Function | | --- | --- | | `Cmd+Shift+C` | Open Codex panel | | `Cmd+Shift+Enter` | Code completion | | `Cmd+Shift+R` | Rewrite selected code | | `Cmd+Shift+E` | Explain selected code | > Shortcuts can be customized in IDE settings to avoid conflicts with other extensions. * * * ## Cloud Task Delegation Launch cloud tasks from the IDE extension: * Select Cloud mode to create a thread * Tasks run in an isolated cloud environment * View results via notifications or PR when complete ### Applicable Scenarios * Need to process multiple tasks in parallel * Delegate large tasks from low-spec devices * Cross-device collaboration * * * ## IDE Configuration ### Setting File Opening Method ## Configure File Opening # ~/.codex/config.toml # Specify the editor for opening files file_opener = "vscode" # Optional values: vscode, vscode-insiders, windsurf, cursor, none ### Setting Default Model ## Configure Default Model # ~/.codex/config.toml model = "gpt-5.4" * * * ## Usage Tips ### Selecting Code as Context After selecting code, Codex automatically uses it as context. The more code you select, the more accurate Codex's responses will be. ### Multi-file Operations When multiple files are open, Codex can handle them simultaneously. Just describe the files you need to modify in the panel. ### Using the Built-in Terminal The IDE's built-in terminal can run Codex CLI directly. This allows you to enjoy the full functionality of the CLI. * * * ## FAQ ### Q: Extension cannot connect? Make sure you are logged into your Codex account, and check your network connection and proxy settings. ### Q: Shortcut conflicts with other extensions? Search for "Codex" in IDE settings to customize shortcuts. ### Q: How to update the extension? Extensions update automatically with Codex, or you can manually update in the IDE extensions panel. ### Q: What's the difference between IDE extension and App? The IDE extension is deeply integrated into the development environment and automatically reads file context; the App provides complete functionality and multi-project management.
← Codex WebCodex Concepts β†’