Skip to content

Drag-and-Drop non-image Files #3761

Open

Description

@CongDon1207

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

Activity

  1. added
    extension
    on Sep 17, 2025
  2. Kuntalthakur01 commented on Sep 17, 2025

    @Kuntalthakur01

    +1

  3. gpeal commented on Sep 17, 2025

    @gpeal
    Contributor

    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
    Image

    I'll leave this open to track dragging folders and at-mentioning folders (which is something we want to fix soon).

  4. rockyicer commented on Sep 17, 2025

    @rockyicer

    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.

  5. ale-vigano commented on Sep 18, 2025

    @ale-vigano

    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

  6. added
    enhancement
    windows-os
    on Sep 23, 2025
  7. tjx666 commented on Oct 22, 2025

    @tjx666

    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.

  8. MarkTheCoderShark commented on Oct 31, 2025

    @MarkTheCoderShark

    Still dealing with the same issue, what a joke

  9. removed
    windows-os
    on Nov 2, 2025
  10. fosple commented on Nov 5, 2025

    @fosple

    Is there a eta already for this? This makes working with Codex super hard compared to Cursor.

  11. paulgould commented on Nov 7, 2025

    @paulgould

    +1

  12. 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
  13. etraut-openai commented on Nov 11, 2025

    @etraut-openai
    Contributor

    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.

  14. changed the title [-]Feature Request: Drag-and-Drop Files[/-] [+]Drag-and-Drop non-image Files[/+] on Nov 13, 2025
  15. 5 remaining items

  16. igoralentyev commented on Mar 20, 2026

    @igoralentyev

    6 months and muli-billion dollar company still cant add drag'n drop support? This is a joke?

  17. song526457385202605 commented on Mar 28, 2026

    @song526457385202605

    6 months and muli-billion dollar company still cant add drag'n drop support? This is a joke?

    You are right, it's really a joke.

  18. p81sunshine commented on Apr 9, 2026

    @p81sunshine

    Not support yet now. :(

  19. emrecpp commented on Apr 17, 2026

    @emrecpp

    Up!

  20. KrisCris commented on Apr 21, 2026

    @KrisCris

    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.

  21. JustinOhms commented on May 1, 2026

    @JustinOhms

    Wouldn't it be cool if there existed a coding agent that could fix this problem.....

  22. Hazyshades commented on May 4, 2026

    @Hazyshades

    It's really hard to use the VS Code plugin after using Cursor
    UP

  23. cod3blox commented on May 8, 2026

    @cod3blox

    Up!

  24. xiuzhi-pomelo commented on Jul 22, 2026

    @xiuzhi-pomelo

    up!

  25. acorsicanfrog commented on Jul 27, 2026

    @acorsicanfrog

    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.

  26. TimVan1596 commented on Aug 8, 2026

    @TimVan1596

    Not support yet now. :(

  27. naughtyduk commented on Oct 6, 2026

    @naughtyduk

    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.

  28. maaduukaar commented on Nov 19, 2026

    @maaduukaar

    1 year for this feature, really?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementextension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions