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:
- Add a toolbar icon in the Codex panel to select the active editor file.
- Provide a command in the command palette such as:
"Codex: Select Current File".
- Optionally add a keyboard shortcut.
Expected Benefit
- Faster workflow
- Reduced context switching
- More convenient interaction with Codex during development
Additional information
_No response_
3 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
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.
This feature request hasn't received enough upvotes, so I'm going to close it.