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!

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay