Feature request: Quick button to select the currently active file

Resolved 💬 3 comments Opened Mar 6, 2026 by ChangJiangCoder Closed Apr 11, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What variant of Codex are you using?

IDE Extension (VSCode)

What feature would you like to see?

Feature Description

Add a quick icon or button that allows users to instantly select the currently active file in Codex.

Motivation

During development, developers frequently switch between files in the editor. When interacting with Codex, selecting the current file manually can slow down the workflow and interrupt the coding process.

A quick action that automatically selects the file currently open in the editor would significantly improve efficiency and reduce navigation time.

Suggested Implementation

Possible approaches:

  1. Add a toolbar icon in the Codex panel to select the active editor file.
  2. Provide a command in the command palette such as:

"Codex: Select Current File".

  1. Optionally add a keyboard shortcut.

Expected Benefit

  • Faster workflow
  • Reduced context switching
  • More convenient interaction with Codex during development

Additional information

_No response_

View original on GitHub ↗

3 Comments

github-actions[bot] contributor · 5 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #12413

Powered by Codex Action

etraut-openai contributor · 5 months ago

What do you mean by "select"? Are you talking about adding the currently-active file to the agent's context? That's already done if "IDE Context" is enabled. For example, you can highlight a function in a file, then ask codex "what does this function do?". It will know which function you've highlighted because the file and selection range are automatically added to the context.

etraut-openai contributor · 4 months ago

This feature request hasn't received enough upvotes, so I'm going to close it.