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:
- Manually copying and pasting code snippets
- Using specific commands to reference files
- 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
- Open GitHub Copilot Chat in VS Code
- Locate the file or folder you want to discuss in your explorer
- Click and drag the item directly into the chat window
- 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!
Top comments (0)