Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>CodexHotKeyNew to Visual Studio Code? Get it now.
CodexHotKey

CodexHotKey

yhliu

|
1 install
| (0) | Free
Smart Ctrl+L for Codex: add selection to thread, otherwise open Codex sidebar.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft