CodexHotKey
CodexHotKey is a lightweight VS Code extension that provides a smart Ctrl+L for OpenAI Codex.
Smart behavior
- If there is a selection in a file editor: send selection to Codex thread (
chatgpt.addToThread)
- If there is no selection: open Codex sidebar (
chatgpt.openSidebar)
Default keybinding
- Windows/Linux:
Ctrl+L
- macOS:
Cmd+L
Requirements
- OpenAI Codex VS Code extension (
openai.chatgpt) must be installed and enabled.
Vim users
This extension contributes Ctrl+L both in normal editor focus and in Vim-active contexts.
If your Vim setup still captures Ctrl+L, set:
"vim.handleKeys": {
"<C-l>": false
}
Commands
CodexHotKey: Smart Ctrl+L
CodexHotKey: Add Selection to Codex Thread
| |