{"id":250390,"date":"2024-08-29T09:20:38","date_gmt":"2024-08-29T16:20:38","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=250390"},"modified":"2025-02-25T07:36:52","modified_gmt":"2025-02-25T15:36:52","slug":"new-github-copilot-features-in-visual-studio-2022-17-11","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/new-github-copilot-features-in-visual-studio-2022-17-11\/","title":{"rendered":"New GitHub Copilot features in Visual Studio 2022 17.11"},"content":{"rendered":"<p>Visual Studio 2022 17.11 now brings exciting advancements from GitHub Copilot! This release significantly improves how GitHub Copilot integrates into your development workflow, offering smarter and more intuitive coding assistance.<\/p>\n<p>Discover the new GitHub Copilot features in Visual Studio, such as enhanced context understanding, improved code completions, and AI insights for debugging and naming. These updates aim to boost your productivity and efficiency in coding. To try these new features, <a href=\"https:\/\/visualstudio.microsoft.com\/downloads\/\">download the update,<\/a> make sure to <a href=\"https:\/\/learn.microsoft.com\/en-us\/visualstudio\/ide\/visual-studio-github-copilot-install-and-states?view=vs-2022#manage-your-copilot-state\">activate your GitHub Copilot account<\/a> and check out the <a href=\"https:\/\/learn.microsoft.com\/visualstudio\/releases\/2022\/release-notes#githubcopilot\">release notes<\/a> for more detailed information.<\/p>\n<h2>GitHub Copilot is getting smarter<\/h2>\n<p>GitHub Copilot Chat now enables you to reference your complete solution, which allows you to gain an even deeper, holistic understanding of your solution to get better results! To reference your solution, simply use <strong>@workspace<\/strong>, and Copilot will respond to high-level questions regarding your solution, files, and their interactions.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-250391\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/08\/word-image-250390-1.png\" alt=\"To reference your solution, simply use @workspace,\" width=\"936\" height=\"168\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/08\/word-image-250390-1.png 936w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/08\/word-image-250390-1-300x54.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/08\/word-image-250390-1-768x138.png 768w\" sizes=\"(max-width: 936px) 100vw, 936px\" \/><\/p>\n<p>Additionally, <a href=\"https:\/\/docs.github.com\/en\/enterprise-cloud@latest\/copilot\/github-copilot-enterprise\/overview\/about-github-copilot-enterprise\">GitHub Copilot Enterprise<\/a>\u00a0users in Visual Studio can now use <strong>@GitHub<\/strong> to get answers enriched with context from their entire repository and Bing search results.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-250392\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/08\/word-image-250390-2.png\" alt=\"GitHub Copilot Enterprise\u00a0users in Visual Studio can now use @GitHub to get answers enriched with context from their entire repository and Bing search results.\" width=\"650\" height=\"459\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/08\/word-image-250390-2.png 650w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/08\/word-image-250390-2-300x212.png 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<h2>Naming things made easy<\/h2>\n<p>GitHub Copilot can now generate naming suggestions for your C++ identifiers (variables, methods, or classes) based on how your identifier is being used and the style of your code.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-250393\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/08\/word-image-250390-3.png\" alt=\"Picture showing other naming options for &quot;property&quot;\" width=\"700\" height=\"346\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/08\/word-image-250390-3.png 700w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/08\/word-image-250390-3-300x148.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<p>To try it out, you&#8217;ll need an active\u00a0<a href=\"https:\/\/visualstudio.microsoft.com\/github-copilot\/\">GitHub Copilot subscription<\/a>. Navigate to any variable you wish to rename, right-click -&gt;\u00a0<strong>Rename<\/strong>\u00a0(Keyboard:\u00a0Ctrl+R,\u00a0Ctrl+R). You&#8217;ll notice a GitHub Copilot sparkle icon that you can click or toggle to generate naming suggestions.<\/p>\n<h2>AI-generated breakpoint expressions<\/h2>\n<p>AI-generated expressions for conditional breakpoints and tracepoints are <strong>now supported in C++<\/strong>. GitHub Copilot analyzes your code and offers insightful breakpoint expressions, streamlining your debugging process.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-250394\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/08\/word-image-250390-4.png\" alt=\"AI-generated breakpoint expressions\" width=\"1024\" height=\"314\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/08\/word-image-250390-4.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/08\/word-image-250390-4-300x92.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/08\/word-image-250390-4-768x236.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>When you place the cursor in the condition text for a conditional breakpoint\/tracepoint in the breakpoint settings window, GitHub Copilot will instantly generate AI-based expression suggestions tailored to your code. You can choose the condition that best suits your needs.<\/p>\n<h2>Understand your symbols with GitHub Copilot<\/h2>\n<p>We\u2019ve integrated GitHub Copilot into the tooltip on hover over symbols to provide AI-generated summaries of the selected symbol. This is available for both C# and C++ developers.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-250395\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/08\/word-image-250390-5.png\" alt=\"tooltip on hover over symbols to provide AI-generated summaries of the selected symbol.\" width=\"1176\" height=\"370\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/08\/word-image-250390-5.png 1176w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/08\/word-image-250390-5-300x94.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/08\/word-image-250390-5-1024x322.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/08\/word-image-250390-5-768x242.png 768w\" sizes=\"(max-width: 1176px) 100vw, 1176px\" \/><\/p>\n<p>This feature assists developers in understanding descriptions of various symbols at different invocations within their codebase. By hovering over a symbol and selecting the\u00a0\u2018<strong>Tell me more\u2019<\/strong>\u00a0option, GitHub Copilot can generate documentation for the selected symbol.<\/p>\n<h2>Refine your GitHub Copilot suggestions<\/h2>\n<p>In Visual Studio 17.11, you can now refine code completions by adding context or asking questions without accepting them first. This update allows you to modify and retry GitHub Copilot\u2019s suggestions before having to accept, saving you the hassle to accepting and refining again! Just press Alt+\/ to modify, or if you\u2019re happy with the suggestion, press tab to accept.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-250396\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/08\/image-completions-to-inline.png\" alt=\"Image completions to inline\" width=\"624\" height=\"156\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/08\/image-completions-to-inline.png 624w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/08\/image-completions-to-inline-300x75.png 300w\" sizes=\"(max-width: 624px) 100vw, 624px\" \/><\/p>\n<h2>GitHub Copilot is even more secure<\/h2>\n<p>Introducing <a href=\"https:\/\/docs.github.com\/copilot\/managing-copilot\/managing-github-copilot-in-your-organization\/configuring-content-exclusions-for-github-copilot\">GitHub Copilot Content Exclusion,<\/a> a new feature that allows\u00a0admins to Copilot to ignore specific files in a repository or organization, ensuring sensitive information is protected while using AI for efficient coding. This applies to Completions, Inline, Chat, for GitHub Copilot for Business and Enterprise users. Additionally, exclusions also apply to other non-chat features, like rename suggestions and hover text. Additionally, content exclusion works with repos on platforms other than GitHub, including Azure DevOps.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-250397\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/08\/word-image-250390-7.png\" alt=\"exclusions also apply to other non-chat features, like rename suggestions and hover text\" width=\"1240\" height=\"687\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/08\/word-image-250390-7.png 1240w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/08\/word-image-250390-7-300x166.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/08\/word-image-250390-7-1024x567.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/08\/word-image-250390-7-768x425.png 768w\" sizes=\"(max-width: 1240px) 100vw, 1240px\" \/><\/p>\n<p>We hope you enjoy this update to Visual Studio and all the new developments happening within GitHub Copilot, and we look forward to hearing what you think. You can share feedback with us by using the thumbs up or down within the Chat, via\u00a0<a href=\"https:\/\/developercommunity.visualstudio.com\/home\">Developer Community<\/a>, by reporting issues via\u00a0<a href=\"https:\/\/learn.microsoft.com\/visualstudio\/ide\/how-to-report-a-problem-with-visual-studio?view=vs-2022\">report a problem<\/a>\u00a0and\u00a0<a href=\"https:\/\/developercommunity.microsoft.com\/VisualStudio\/suggest\">share your suggestions<\/a>\u00a0for new features or improvements to existing ones.<\/p>\n<p>Stay connected with the Visual Studio team by following us on <a href=\"https:\/\/twitter.com\/VisualStudio\">Twitter<\/a>, <a href=\"https:\/\/www.youtube.com\/user\/VisualStudio\">YouTube<\/a>, and <a href=\"https:\/\/www.linkedin.com\/showcase\/microsoft-visual-studio\/\">LinkedIn<\/a> and on\u00a0<a href=\"https:\/\/learn.microsoft.com\/en-us\/visualstudio\/?view=vs-2022\">Microsoft Learn<\/a>.<\/p>\n<p>Thank you for using Visual Studio and <strong>happy coding!<\/strong><\/p>\n<p><div  class=\"d-flex justify-content-center\"><a class=\"cta_button_link btn-primary mb-24\" href=\" https:\/\/visualstudio.microsoft.com\/downloads\/\" target=\"_blank\">Download Visual Studio 17.11<\/a><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Visual Studio 2022 17.11 now brings exciting advancements from GitHub Copilot! This release significantly improves how GitHub Copilot integrates into your development workflow, offering smarter and more intuitive coding assistance. Discover the new GitHub Copilot features in Visual Studio, such as enhanced context understanding, improved code completions, and AI insights for debugging and naming. These [&hellip;]<\/p>\n","protected":false},"author":143941,"featured_media":250392,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[6888,6967,155],"tags":[6924,6815],"class_list":["post-250390","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-copilot","category-github-copilot","category-visual-studio","tag-github-copilot","tag-visual-studio-2022"],"acf":[],"blog_post_summary":"<p>Visual Studio 2022 17.11 now brings exciting advancements from GitHub Copilot! This release significantly improves how GitHub Copilot integrates into your development workflow, offering smarter and more intuitive coding assistance. Discover the new GitHub Copilot features in Visual Studio, such as enhanced context understanding, improved code completions, and AI insights for debugging and naming. These [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/250390","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/users\/143941"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=250390"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/250390\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/250392"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=250390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=250390"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=250390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}