You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of the VS Code extension are you using?
0.4.1
Which IDE are you using?
Vs code
What platform is your computer?
Microsoft Windows NT 10.0.26100.0 x64
What steps can reproduce the bug?
I would like the developers to add two features to make working with Codex in VS Code faster and more convenient.
First, allow users to drag and drop a file or an entire folder from the Explorer into the chat window. When dropped, the file/folder content should automatically be sent as context and clearly displayed in the chat window so users know what has been attached. This eliminates the need to click the “+” button and manually select or copy-paste files each time, saving many repetitive steps.
Second, when a user highlights a piece of code in the editor, that selected code should be treated as the default context in the chat. The AI will then focus its analysis or answers on the highlighted section.
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response
Reacted by reslear, Raffael Campos, Anders Hofsten, Adrian, Kamil Adamski, Rikid, Carl Vigren, Daniel Levine, NLSKY, Raphaël Moreau and 48 more
Second, when a user highlights a piece of code in the editor, that selected code should be treated as the default context in the chat. The AI will then focus its analysis or answers on the highlighted section.
That context is automatically included if you click the "Auto context" button
You can also right click code (or a selection) and choose "Add to Codex chat" and it will do what you're looking for. You can also bind it to a hotkey
I'll leave this open to track dragging folders and at-mentioning folders (which is something we want to fix soon).
Reacted by Temuri, jtimi-mtbk and Emre Demircan
Reacted by Nguyễn Công Đôn, Naufaldi, Kamil Adamski, Jan Chalupa, Robert Radoslav, Lukas Krisikaitis and Chris Brand
yes! please support to drag any file directly to the chat. some times , my file is in other folder not the open folder inside vscode.
PS: just copy what roo code is done.
Reacted by ale-vigano, Naufaldi, Duye, barttermorshuizen, Chris Brand, Emre Demircan, Michal Šrůtek and Corsican Frog
This. moving from cursor to codex and this seems like an obvious feature.
If a dev chooses IDE over CLI that means using the mouse
Reacted by SUGIMOTO Takuma, Maximilian Barnikol, Ioannis Kokkinidis, Chris Brand, Arnob Paul, Igor Alentyev, Emre Demircan, _connlost, Michal Šrůtek, Rusak Oleg and 1 more
changed the title [-]Feature Request: Drag-and-Drop Files and Highlighted Code as Context in Codex (VS Code Extension)[/-][+]Feature Request: Drag-and-Drop Files[/+]on Nov 11, 2025
What a joke that you can drag and drop on the Codex app, not on the VSCode extension. Imagining there are multiple files/dirs named the same, when you will have to @ them and compare the already pathetically short clipped path to see which one you are looking for.
Reacted by Emre Demircan, Yanwei Wu, KawaMood, ysaikue and Corsican Frog
This should have been a feature from the start, I cannot work with Codex properly without that. Just add drag&drop please.
Copilot has it and it works perfectly fine, all built-in inside Visual Studio Code.
Why cannot Codex just do the same thing?
I cannot just lose several seconds every time I want to pick a file, seriously
Even the MacOS animation to bring up the Finder is already like a second, you're wasting our time by not allowing this at all
Please, implement it, ASAP.
Reacted by Emre Demircan, Victor Pogor and Max Shvedov
Activity
Kuntalthakur01 commentedon Sep 17, 2025
+1
gpeal commentedon Sep 17, 2025
That context is automatically included if you click the "Auto context" button
You can also right click code (or a selection) and choose "Add to Codex chat" and it will do what you're looking for. You can also bind it to a hotkey

I'll leave this open to track dragging folders and at-mentioning folders (which is something we want to fix soon).
rockyicer commentedon Sep 17, 2025
yes! please support to drag any file directly to the chat. some times , my file is in other folder not the open folder inside vscode.
PS: just copy what roo code is done.
ale-vigano commentedon Sep 18, 2025
This. moving from cursor to codex and this seems like an obvious feature.
If a dev chooses IDE over CLI that means using the mouse
tjx666 commentedon Oct 22, 2025
Why close the issue #4984 as duplicated? @gpeal
Vscode/cursor can't drag file path to codex cli input inside it's integration terminal in recent upgrade.
MarkTheCoderShark commentedon Oct 31, 2025
Still dealing with the same issue, what a joke
fosple commentedon Nov 5, 2025
Is there a eta already for this? This makes working with Codex super hard compared to Cursor.
paulgould commentedon Nov 7, 2025
+1
[-]Feature Request: Drag-and-Drop Files and Highlighted Code as Context in Codex (VS Code Extension)[/-][+]Feature Request: Drag-and-Drop Files[/+]etraut-openai commentedon Nov 11, 2025
The selection is already included in the "auto context". I renamed the issue to focus on the "drag and drop" part of the feature request.
[-]Feature Request: Drag-and-Drop Files[/-][+]Drag-and-Drop non-image Files[/+]5 remaining items
igoralentyev commentedon Mar 20, 2026
6 months and muli-billion dollar company still cant add drag'n drop support? This is a joke?
song526457385202605 commentedon Mar 28, 2026
You are right, it's really a joke.
p81sunshine commentedon Apr 9, 2026
Not support yet now. :(
emrecpp commentedon Apr 17, 2026
Up!
KrisCris commentedon Apr 21, 2026
What a joke that you can drag and drop on the Codex app, not on the VSCode extension. Imagining there are multiple files/dirs named the same, when you will have to @ them and compare the already pathetically short clipped path to see which one you are looking for.
JustinOhms commentedon May 1, 2026
Wouldn't it be cool if there existed a coding agent that could fix this problem.....
Hazyshades commentedon May 4, 2026
It's really hard to use the VS Code plugin after using Cursor
UP
cod3blox commentedon May 8, 2026
Up!
xiuzhi-pomelo commentedon Jul 22, 2026
up!
acorsicanfrog commentedon Jul 27, 2026
Up.
This should have been a feature from the start, I cannot work with Codex properly without that. Just add drag&drop please.
Copilot has it and it works perfectly fine, all built-in inside Visual Studio Code.
Why cannot Codex just do the same thing?
I cannot just lose several seconds every time I want to pick a file, seriously
Even the MacOS animation to bring up the Finder is already like a second, you're wasting our time by not allowing this at all
Please, implement it, ASAP.
TimVan1596 commentedon Aug 8, 2026
Not support yet now. :(
naughtyduk commentedon Oct 6, 2026
This is pretty embarrassing for a multi-billion dollar company.
Basic UX functionality you could vibe code in 30 minutes missing for more than a year.
Windsurf has this, Devin has this, Cursor has this.
You even have this feature for images.
This is the one paid product people actually buy from you.
Fix it.
maaduukaar commentedon Nov 19, 2026
1 year for this feature, really?