DEV Community

thandhla
thandhla

Posted on

1 1 1 1 1

VS Code Just Made GitHub Copilot Even Smarter: Just Drag And Drop File

GitHub Copilot Chat in VS Code has received a significant usability upgrade that streamlines how developers can share code context.You can now simply drag and drop files directly into the chat - no more copy-pasting or typing file paths!

What's New?
The latest VS Code update introduces a drag-and-drop functionality for GitHub Copilot Chat.This feature allows you to:

  • Drag individual files into chat
  • Drop entire folder for context
  • Get immediate code analysis and suggestions based on the dropped content

Why This Matters
Previously or before this feature, sharing code context with Copilot Chat requires either:

  1. Manually copying and pasting code snippets
  2. Using specific commands to reference files
  3. Typing out file paths

Now, you can simply drag the files you want to discuss and drop them right into the chat. This natural interaction method makes it much easier to get AI assistance with your code.

How to Use It

  1. Open GitHub Copilot Chat in VS Code
  2. Locate the file or folder you want to discuss in your explorer
  3. Click and drag the item directly into the chat window
  4. Drop it - that's it! Copilot will immediately have access to the content

This seemingly simple addition makes a big difference in the developer experience. It's a natural way to interact with AI assistance, making the code review and development process more intuitive and efficient.

Have you tried this new feature yet? What's your experience been like? Share your thoughts in the comments below!

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay