包阅导读总结
1.
– `GitHub Copilot`、`Visual Studio 2022 17.11`、`代码理解`、`功能改进`、`反馈分享`
2.
GitHub Copilot 在 Visual Studio 2022 17.11 中功能增强,包括更好地理解代码和解决方案,能搜索网页,希望用户反馈。
3.
– 增强的代码理解
– 可在聊天中直接参考方法、类、函数及整个解决方案
– 用“加名称或`@workspace`提供特定上下文
– 搜索网页
– 企业订阅者能获取整个仓库和网络搜索结果的答案
– 提及`@github`时会智能决定是否用必应搜索
– 反馈与交流
– 希望用户分享使用中的想法和反馈
– 可通过多种渠道与 Visual Studio 团队保持联系
思维导图:
文章来源:devblogs.microsoft.com
作者:Rhea Patel
发布时间:2024/8/22 10:00
语言:英文
总字数:602字
预计阅读时间:3分钟
评分:83分
标签:GitHub Copilot,Visual Studio 2022,代码理解,开发者工具,IDE 中的 AI
以下为原文内容
本内容来源于用户推荐转载,旨在分享知识与观点,如有侵权请联系删除 联系邮箱 media@ilingban.com
GitHub Copilot in Visual Studio 2022 17.11 now offers an improved experience you to refer to their methods, classes, functions, and entire solution directly within the chat. By using the # symbol followed by the name of a method, class, or function, or by referring to your solution with @workspace, you can provide specific context that helps GitHub Copilot better understand their code and the problem at hand.
Refer to your solution
GitHub Copilot Chat now allows you to refer to your entire solution. This feature helps provide an even deeper understanding of your solution to get the best results. To refer to your solution, simply use the @workspace and Copilot will answer high level questions about your solution, files and how they work together.
Try asking GitHub Copilot Chat questions like:
- @workspace What project can I run in my solution?
- @workspace In my workspace, where is #methodname referenced?
- @workspace Where does serialization occur in my solution?
Reference your methods, classes, functions
GitHub Copilot Chat now allows you to refer to your methods, classes, and functions inline. By referring to methods, classes, and functions directly within the chat, you can provide specific context that helps GitHub Copilot better comprehend your code and the problem at hand. This feature empowers you to provide richer context to GitHub Copilot, enabling it to deliver more precise responses by gaining a deeper understanding of your codebase.
Try asking GitHub Copilot Chat questions like:
- I have a test method named #methodName. How can I ensure that it’s being executed correctly?
- What are some optimizations that could be applied to #methodName?
- How does #methodName1 use #methodName2 and what issues should I look out for?
- /explain #methodName
Search the web in Copilot Chat
GitHub Copilot now includes context from your entire repository & can search the web.
GitHub Copilot Enterprisesubscribers in Visual Studio can now use GitHub Copilot Chat to get answers enriched with context from their entire repository and Bing search results.
Get answers from across your entire codebase
GitHub Copilot Chat can now answer questions with understanding of your full repository, not just the tabs you have open.Index your repository on GitHub.com, and then ask a question mentioning@github. You can ask questions like@github where is rate limiting implemented?
Search with the context of the web
GitHub Copilot chat can also search Bing to find information outside of its general knowledge or your codebase. When you mention@github, GitHub Copilot will intelligently decide when to use Bing. You can ask questions like@github what is the latest LTS version of .NET?
Bing search is only available if enabled by an administrator – for more details, seeEnabling GitHub Copilot Enterprise featuresor readthe docs.
Try it out today!
We hope you enjoy this new feature in GitHub Copilot for Visual Studio! Your feedback is important to us, so please share your thoughts using the thumbs up or down in the Chat, or by visiting the Developer Community. We look forward to hearing from you!
Happy coding!
We appreciate the time you’ve spent reporting issues/suggestions and hope you continue to give us feedback when using GitHub Copilot in Visual Studio on what you like and what we can improve. Your feedback is critical to help us make GitHub Copilot the best tool it can be! You can share feedback with us viaDeveloper Community: report any bugs or issues viareport a problemandshare your suggestionsfor new features or improvements to existing ones.
Stay connected with the Visual Studio team by following us onYouTube,Twitter,LinkedIn,Twitchand onMicrosoft Learn.