{"id":248265,"date":"2024-03-14T09:00:03","date_gmt":"2024-03-14T16:00:03","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=248265"},"modified":"2024-03-18T15:04:38","modified_gmt":"2024-03-18T22:04:38","slug":"github-copilot-in-visual-studio-a-recap-of-2023","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/github-copilot-in-visual-studio-a-recap-of-2023\/","title":{"rendered":"GitHub Copilot in Visual Studio: A Recap of 2023"},"content":{"rendered":"<p><span data-contrast=\"auto\">In the rapidly evolving world of software development, staying ahead of the curve is crucial. The introduction of AI in Visual Studio, particularly GitHub Copilot, has revolutionized the way developers code. With Copilot integrated into Visual Studio, you can leverage AI to streamline your workflows, manage large codebases, analyze exceptions, and even generate commit messages. It\u2019s like having a knowledgeable pair programmer right beside you, helping you to be more productive, iterate quicker, and make your applications more reliable. Here are a few GitHub Copilot innovations in Visual Studio that we want to highlight from this past year.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2 aria-level=\"2\"><span style=\"font-size: 14pt;\"><b>Inline Chat View<\/b>\u00a0<\/span><\/h2>\n<p><span data-contrast=\"auto\">Ever wish you could just take the code that your generative AI chatbot gives you and put it right in your editor? With the inline chat, you can interact with GitHub Copilot right within your editor! This feature allows you to refine your code within the editor, which is perfect for asking specific questions about your active file, and seeing diff views when GitHub Copilot gives you code suggestions.<\/span><\/p>\n<p><span data-contrast=\"auto\">To access the inline chat, you need an active GitHub Copilot subscription and the extension installed in Visual Studio 17.8 or higher. To access the inline chat, right click within the editor &gt; Ask Copilot, or through the shortcut (Alt+\/).\u00a0<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0\u00a0\u00a0\u00a0\u00a0<a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/inline-chat.png\"><img decoding=\"async\" class=\"wp-image-248328 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/inline-chat-300x148.png\" alt=\"Image inline chat\" width=\"547\" height=\"270\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/inline-chat-300x148.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/inline-chat-1024x504.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/inline-chat-768x378.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/inline-chat-1536x756.png 1536w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/inline-chat.png 1855w\" sizes=\"(max-width: 547px) 100vw, 547px\" \/><\/a><\/span><\/p>\n<p><span data-contrast=\"auto\">Learn more about inline code refinement here: <\/span><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/simplified-code-refinement-and-debugging-with-github-copilot-chat\/\"><span data-contrast=\"none\">Simplified Code Refinement and Debugging with GitHub Copilot Chat &#8211; Visual Studio Blog (microsoft.com)<\/span><\/a><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><a href=\"https:\/\/developercommunity.microsoft.com\/t\/GitHub-Copilot---Inline-Chat-Visual-Stu\/10612006\"><span data-contrast=\"none\">Submit Feedback for Inline Chat<\/span><\/a><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2 aria-level=\"2\"><span style=\"font-size: 14pt;\"><b>Slash Commands to State Intent<\/b>\u00a0<\/span><\/h2>\n<p><span data-contrast=\"auto\">Being misunderstood is the worst! Slash commands allow you to clearly state your intention behind your prompt so that there are no misunderstandings with GitHub Copilot. When learning to use generative AI chatbots, it\u2019s always frustrating when it doesn\u2019t understand what you\u2019re asking for. By using slash commands, they allow you to clearly state the intention behind your prompt so that there are no misunderstandings with Copilot.<\/span><\/p>\n<p><span data-contrast=\"auto\">Slash commands exist within the chat window. Type \u2018\/\u2019 to pop open a list of commands that you can use to state your intent, such as \u201c\/explain\u201d to explain code, \u201c\/doc\u201d to document a method or file, and many more!<\/span><span data-contrast=\"auto\">\u00a0<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\"><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/slash-commands.png\"><img decoding=\"async\" class=\"wp-image-248327 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/slash-commands-300x107.png\" alt=\"Image slash commands\" width=\"586\" height=\"209\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/slash-commands-300x107.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/slash-commands-1024x366.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/slash-commands-768x275.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/slash-commands-1536x550.png 1536w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/slash-commands.png 1565w\" sizes=\"(max-width: 586px) 100vw, 586px\" \/><\/a><\/span><\/p>\n<p><span data-contrast=\"auto\">Learn more about available slash commands, and ways to create better prompts here: <\/span>\n<a href=\"https:\/\/learn.microsoft.com\/en-us\/visualstudio\/ide\/copilot-chat-context?view=vs-2022\"><span data-contrast=\"none\">Tips &amp; Tricks for GitHub Copilot Chat in Visual Studio &#8211; Visual Studio (Windows) | Microsoft Learn<\/span><\/a><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><a href=\"https:\/\/developercommunity.microsoft.com\/t\/GitHub-Copilot---Slash-Commands-Visual\/10612007\"><span data-contrast=\"none\">Submit Feedback for Slash Commands<\/span><\/a><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2 aria-level=\"2\"><span style=\"font-size: 14pt;\"><b>Context Variables to Refine Your Scope<\/b><\/span><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;201341983&quot;:0,&quot;335559738&quot;:299,&quot;335559739&quot;:299,&quot;335559740&quot;:259}\">\u00a0<\/span><\/h2>\n<p><span data-contrast=\"auto\">Ever wonder what GitHub Copilot is referencing when answering your questions? The context variables feature allows you to specify files from your solution in your questions by using the # symbol. When you reference a file, Copilot can access its content and provide specific answers related to it.\u00a0<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<blockquote><p><span data-contrast=\"auto\"><strong>[TIP]<\/strong> Utilize our latest and greatest with <\/span><i><span data-contrast=\"auto\">#<\/span><\/i><span data-contrast=\"auto\">Solution to include the context of all the files in your open solution, allowing you to root your answers in it. Note: #Solution only supports C#.\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">Example: \u201cWhat parts of this <\/span><i><span data-contrast=\"auto\">#Solution <\/span><\/i><span data-contrast=\"auto\">is designated to be a command line interface?\u201d\u00a0<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p><\/blockquote>\n<p><span data-contrast=\"auto\">For instance, you can ask questions like \u201cHow does the <\/span><i><span data-contrast=\"auto\">#<\/span><\/i><span data-contrast=\"auto\">Main.cs file work?\u201d or \u201cWhat is the purpose of the <\/span><i><span data-contrast=\"auto\">#<\/span><\/i><span data-contrast=\"auto\">Calculator.cs file?\u201d Copilot Chat will then provide relevant answers based on the content of those files. This feature streamlines the process by eliminating the need for manual copying and pasting. Feel free to include multiple files in a single question for even greater efficiency!\u00a0<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\"><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/context-variables.png\"><img decoding=\"async\" class=\"wp-image-248326 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/context-variables-279x300.png\" alt=\"Image context variables\" width=\"534\" height=\"574\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/context-variables-279x300.png 279w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/context-variables-953x1024.png 953w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/context-variables-768x825.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/context-variables.png 962w\" sizes=\"(max-width: 534px) 100vw, 534px\" \/><\/a><\/span><\/p>\n<p><span data-contrast=\"auto\">Learn more about context variables here: <\/span><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/copilot-chat-slash-commands-and-context-variables\/\"><span data-contrast=\"none\">Code Faster and Better with GitHub Copilot&#8217;s New Features: Slash Commands and Context Variables &#8211; Visual Studio Blog (microsoft.com)<\/span><\/a><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><a href=\"https:\/\/developercommunity.microsoft.com\/t\/GitHub-Copilot---Context-Variables-Visu\/10612008\"><span data-contrast=\"none\">Submit Feedback for Context Variables<\/span><\/a><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2 aria-level=\"2\"><span style=\"font-size: 14pt;\"><b>Analyze and Fix Test Window Failures<\/b>\u00a0<\/span><\/h2>\n<p><span data-contrast=\"auto\">With GitHub Copilot, failure and exception analysis has never been easier. This AI assisted feature helps the user in analyzing and fixing test failure due to failed test assumptions or exceptions that occur during test execution. This feature can be found in the Test Explorer and creates a discussion thread that allows you to interact with GitHub Copilot, providing you access to both explanations and code fixes. When a failed test is present, the \u201cAsk Copilot\u201d link will appear in the test failure summary explanation, allowing you to follow up with Copilot.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\"><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/test-window-fialure.png\"><img decoding=\"async\" class=\"wp-image-248325 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/test-window-fialure-300x111.png\" alt=\"Image test window fialure\" width=\"578\" height=\"214\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/test-window-fialure-300x111.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/test-window-fialure-1024x378.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/test-window-fialure-768x284.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/test-window-fialure-1536x567.png 1536w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/test-window-fialure.png 1557w\" sizes=\"(max-width: 578px) 100vw, 578px\" \/><\/a><\/span><\/p>\n<p><a href=\"https:\/\/developercommunity.microsoft.com\/t\/Test-Explorer---Visual-Studio\/10612009\"><span data-contrast=\"none\">Submit Feedback for Test Explorer<\/span><\/a><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2 aria-level=\"2\"><span style=\"font-size: 14pt;\"><b>AI Assisted Exception Analysis<\/b>\u00a0<\/span><\/h2>\n<p><span data-contrast=\"auto\">Ever rattled your brain on why an exception occurred? Now, GitHub Copilot can be used to assist with exception analysis, helping developers understand why an exception occurred and suggests ways to resolve it. It collects relevant information about the exception, including its type, message, snippets of code from the stack trace, and local variable values. This data is then sent to Copilot for an initial analysis. Subsequently, users can engage in further conversation with Copilot to discuss the error and explore potential solutions.\u00a0<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/Screenshot-2024-03-14-055032.png\"><img decoding=\"async\" class=\"wp-image-248329 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/Screenshot-2024-03-14-055032-300x222.png\" alt=\"Image Screenshot 2024 03 14 055032\" width=\"578\" height=\"428\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/Screenshot-2024-03-14-055032-300x222.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/Screenshot-2024-03-14-055032-1024x759.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/Screenshot-2024-03-14-055032-768x569.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/Screenshot-2024-03-14-055032.png 1252w\" sizes=\"(max-width: 578px) 100vw, 578px\" \/><\/a><\/p>\n<p><span data-contrast=\"auto\">Learn more about how to use this feature here: <\/span><a href=\"https:\/\/learn.microsoft.com\/en-us\/visualstudio\/debugger\/debug-with-copilot?view=vs-2022#ai-assisted-exceptions\"><span data-contrast=\"none\">Debug with GitHub Copilot &#8211; Visual Studio (Windows) | Microsoft Learn<\/span><\/a><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><a href=\"https:\/\/developercommunity.microsoft.com\/t\/AI-Assisted-Exception-Analysis---Visual\/10612011\"><span data-contrast=\"none\">Submit Feedback for AI Assisted Exception Analysis<\/span><\/a><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2 aria-level=\"2\"><span style=\"font-size: 14pt;\"><b>Auto Insights in Profiling Tools<\/b><\/span><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;201341983&quot;:0,&quot;335559738&quot;:299,&quot;335559739&quot;:299,&quot;335559740&quot;:259}\">\u00a0<\/span><\/h2>\n<p><span data-contrast=\"auto\">Auto insights flagged by the CPU Usage and Instrumentation profiler allows you to get insights on your code, typically related to a known problematic pattern. When presented with an auto insight, users can now use the \u201cAsk Copilot\u201d link to get more detailed information on the insight. GitHub Copilot takes the context from the insight and uses it to prompt Copilot again so you can get more information on the insight you\u2019ve been given and ask follow up questions!<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/Screenshot-2024-03-14-055200.png\"><img decoding=\"async\" class=\"wp-image-248330 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/Screenshot-2024-03-14-055200-300x168.png\" alt=\"Image Screenshot 2024 03 14 055200\" width=\"564\" height=\"316\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/Screenshot-2024-03-14-055200-300x168.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/Screenshot-2024-03-14-055200-1024x575.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/Screenshot-2024-03-14-055200-768x431.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/Screenshot-2024-03-14-055200.png 1270w\" sizes=\"(max-width: 564px) 100vw, 564px\" \/><\/a><\/p>\n<p><span data-contrast=\"auto\">Learn more about how GitHub Copilot can help you debug here: <\/span><a href=\"https:\/\/learn.microsoft.com\/en-us\/visualstudio\/debugger\/debug-with-copilot?view=vs-2022#ai-assisted-auto-insights\"><span data-contrast=\"none\">Debug with GitHub Copilot &#8211; Visual Studio (Windows) | Microsoft Learn<\/span><\/a><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><a href=\"https:\/\/developercommunity.microsoft.com\/t\/Auto-Insights-in-Profiling-Tools---Visua\/10612012\"><span data-contrast=\"none\">Submit Feedback for Auto Insights in Profiling Tools<\/span><\/a><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2 aria-level=\"2\"><span style=\"font-size: 14pt;\"><b>AI-Powered Rename Suggestions<\/b>\u00a0<\/span><\/h2>\n<p><span data-contrast=\"auto\">Have you ever grappled with naming a variable, method, or class? You\u2019re not alone. This feature goes beyond mere name suggestions; it learns how your identifier is used and adapts to your code style, proposing identifiers that seamlessly integrate into your codebase.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">To access this feature in Visual Studio, simply select any identifier, right-click, and choose \u201cRename\u201d (Ctrl+R, Ctrl+R). Click on the rename suggestions button or use the Ctrl+Space shortcut. You\u2019ll be presented with a list of naming suggestions tailored to the context of your code. Pick the name that resonates with you the most, and press Enter!\u00a0<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\"> <a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/Screenshot-2024-03-14-055803.png\"><img decoding=\"async\" class=\" wp-image-248335 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/Screenshot-2024-03-14-055803-300x158.png\" alt=\"Image Screenshot 2024 03 14 055803\" width=\"558\" height=\"294\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/Screenshot-2024-03-14-055803-300x158.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/Screenshot-2024-03-14-055803-1024x540.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/Screenshot-2024-03-14-055803-768x405.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/Screenshot-2024-03-14-055803.png 1243w\" sizes=\"(max-width: 558px) 100vw, 558px\" \/><\/a><\/span><\/p>\n<p><span data-contrast=\"auto\">Learn more about AI-powered rename suggestions here: <\/span><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/ai-powered-rename-suggestions\/\"><span data-contrast=\"none\">Naming Made Easy: AI-Powered Rename Suggestions &#8211; Visual Studio Blog (microsoft.com)<\/span><\/a><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><a href=\"https:\/\/developercommunity.microsoft.com\/t\/AI-Powered-Rename-Suggestions---Visual-S\/10612013\"><span data-contrast=\"none\">Submit Feedback for AI-Powered Rename Suggestions<\/span><\/a><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2 aria-level=\"2\"><span style=\"font-size: 14pt;\"><b>AI-Generated Commit Messages<\/b>\u00a0<\/span><\/h2>\n<p><span data-contrast=\"auto\">After spending hours on a bug fix or a feature update, the last thing I would want to do is rack my brain to precisely explain the contents of my Git commit. Fortunately, Copilot offers a solution. Use the newly generated Git commit message feature to succinctly describe your set of changes and improve the quality and consistency of your commit messages, making your code easier to understand and maintain. You can then refine the message by adding the crucial \u2018why\u2019 behind the change before committing.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">Use the new \u201cAdd AI Generated Commit Message\u201d sparkle pen icon in the Git Changes window to generate a suggestion.<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/Screenshot-2024-03-14-055938.png\"><img decoding=\"async\" class=\"wp-image-248336 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/Screenshot-2024-03-14-055938-300x170.png\" alt=\"Image Screenshot 2024 03 14 055938\" width=\"605\" height=\"343\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/Screenshot-2024-03-14-055938-300x170.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/Screenshot-2024-03-14-055938-1024x580.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/Screenshot-2024-03-14-055938-768x435.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/Screenshot-2024-03-14-055938.png 1072w\" sizes=\"(max-width: 605px) 100vw, 605px\" \/><\/a><\/p>\n<p><span data-contrast=\"auto\">Find out more here: <\/span><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/write-your-git-commits-with-github-copilot\/\"><span data-contrast=\"none\">Write Your Git Commits with GitHub Copilot &#8211; Visual Studio Blog (microsoft.com)<\/span><\/a><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><a href=\"https:\/\/developercommunity.microsoft.com\/t\/AI-Powered-Rename-Suggestions---Visual-S\/10612013\"><span data-contrast=\"none\">Submit Feedback for AI-Generated Commit Messages<\/span><\/a><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<h2 aria-level=\"2\"><span style=\"font-size: 14pt;\"><b>IntelliSense for Breakpoint Expressions<\/b><\/span><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;201341983&quot;:0,&quot;335559738&quot;:299,&quot;335559739&quot;:299,&quot;335559740&quot;:259}\">\u00a0<\/span><\/h2>\n<p><span data-contrast=\"auto\">Breakpoint expressions can help developers debug their code more efficiently and effectively. However, finding the optimal breakpoint expressions can be challenging and time-consuming. That is why we use GitHub Copilot Chat in Visual Studio, an AI companion that can help us with IntelliSense for breakpoint expressions. GitHub Copilot can analyze our code and suggest the best breakpoint expressions for our debugging scenarios. What a great way to save time and effort!\u00a0<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">This feature is aimed at users creating advanced breakpoints such as conditional breakpoints and trace points. Using the context of the code surrounding the breakpoint, GitHub Copilot suggests potential expressions to use for breakpoint conditions and logging statements. Note: IntelliSense breakpoint suggestions only support C#.\u00a0<\/span><\/p>\n<p><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\"><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/breakpoint.png\"><img decoding=\"async\" class=\"wp-image-248324 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/breakpoint-300x163.png\" alt=\"Image breakpoint\" width=\"591\" height=\"321\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/breakpoint-300x163.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/breakpoint-1024x556.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/breakpoint-768x417.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/breakpoint-1536x834.png 1536w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/breakpoint.png 1645w\" sizes=\"(max-width: 591px) 100vw, 591px\" \/><\/a><\/span><\/p>\n<p><a href=\"https:\/\/developercommunity.microsoft.com\/t\/Submit-Feedback-for-IntelliSense-for-Bre\/10612015\"><span data-contrast=\"none\">Submit Feedback for IntelliSense for Breakpoint Expressions<\/span><\/a><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2 aria-level=\"2\"><span style=\"font-size: 14pt;\"><b>Deadlock Analysis with AI<\/b><\/span><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;201341983&quot;:0,&quot;335559738&quot;:299,&quot;335559739&quot;:299,&quot;335559740&quot;:259}\">\u00a0<\/span><\/h2>\n<p><span data-contrast=\"auto\">Deadlock can cause serious problems in your program and can be tedious to detect and resolve. With GitHub Copilot, deadlocks are demystified, and made much more obvious to the user by showing them in the Exception Helper. The exception helper will now include an \u201cAsk Copilot\u201d link, where Copilot takes the context of your code, along with the information that the Exception Helper has accrued and allows users to continue asking questions to Copilot about how they can resolve the deadlock.\u00a0<\/span><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/deadlock-analysis-1.png\"><img decoding=\"async\" class=\"wp-image-248323 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/deadlock-analysis-1-300x174.png\" alt=\"Image deadlock analysis\" width=\"538\" height=\"312\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/deadlock-analysis-1-300x174.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/deadlock-analysis-1-1024x593.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/deadlock-analysis-1-768x445.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/deadlock-analysis-1-1536x889.png 1536w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/03\/deadlock-analysis-1.png 1565w\" sizes=\"(max-width: 538px) 100vw, 538px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/developercommunity.microsoft.com\/t\/Submit-Feedback-for-Deadlock-Analysis-in\/10612016\"><span data-contrast=\"none\">Submit Feedback for Deadlock Analysis in AI<\/span><\/a>\n<span style=\"font-size: 14pt;\">\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"font-size: 14pt;\">How can I get started?\u00a0<\/span><\/h2>\n<p><span data-contrast=\"auto\">All of these features and more are now available on the recently released <\/span><a href=\"https:\/\/visualstudio.microsoft.com\/downloads\/\"><span data-contrast=\"none\">Visual Studio 17.9<\/span><\/a><span data-contrast=\"auto\">. So why wait? Install <\/span><a href=\"https:\/\/learn.microsoft.com\/en-us\/visualstudio\/ide\/visual-studio-github-copilot-extension?view=vs-2022\"><span data-contrast=\"none\">Copilot<\/span><\/a><span data-contrast=\"auto\"> and <\/span><a href=\"https:\/\/learn.microsoft.com\/en-us\/visualstudio\/ide\/visual-studio-github-copilot-chat?view=vs-2022\"><span data-contrast=\"none\">Copilot Chat<\/span><\/a><span data-contrast=\"auto\"> in Visual Studio today and experience the future of coding!<\/span><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><span data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<h2><span style=\"font-size: 14pt;\">Providing Feedback and Staying Connected<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;201341983&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:240}\">\u00a0<\/span><\/h2>\n<p><span data-contrast=\"auto\">We appreciate the time you\u2019ve spent reporting issues\/suggestions and hope you continue to give us feedback when using Visual Studio on what you like and what we can improve.\u00a0<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;201341983&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:240,&quot;335559740&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">Your feedback is critical to help us make Visual Studio the best tool it can be! You can share feedback with us via\u202f<\/span><a href=\"https:\/\/developercommunity.visualstudio.com\/home%22%20\/t%20%22_blank\"><span data-contrast=\"none\">Developer Community<\/span><\/a><span data-contrast=\"auto\">: report any bugs or issues via\u202f<\/span><a href=\"https:\/\/learn.microsoft.com\/visualstudio\/ide\/how-to-report-a-problem-with-visual-studio?view=vs-2022\"><span data-contrast=\"none\">report a problem<\/span><\/a><span data-contrast=\"auto\">\u202fand\u202f<\/span><a href=\"https:\/\/developercommunity.microsoft.com\/VisualStudio\/suggest\"><span data-contrast=\"none\">share your suggestions<\/span><\/a><span data-contrast=\"auto\">\u202ffor new features or improvements to existing ones.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;201341983&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:240,&quot;335559740&quot;:240}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">Stay connected with the Visual Studio team by following us on <\/span><a href=\"https:\/\/www.youtube.com\/@visualstudio\"><span data-contrast=\"none\">YouTube<\/span><\/a><span data-contrast=\"auto\">, <\/span><a href=\"https:\/\/twitter.com\/VisualStudio\"><span data-contrast=\"none\">Twitter<\/span><\/a><span data-contrast=\"auto\">, <\/span><a href=\"https:\/\/www.linkedin.com\/showcase\/microsoft-visual-studio\/\"><span data-contrast=\"none\">LinkedIn<\/span><\/a><span data-contrast=\"auto\">, <\/span><a href=\"https:\/\/www.twitch.tv\/visualstudio\"><span data-contrast=\"none\">Twitch<\/span><\/a><span data-contrast=\"auto\"> and on <\/span><a href=\"https:\/\/learn.microsoft.com\/en-us\/visualstudio\/?view=vs-2022\"><span data-contrast=\"none\">Microsoft Learn<\/span><\/a><span data-contrast=\"auto\">.\u202f<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;201341983&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:240,&quot;335559740&quot;:240}\">\u00a0<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the rapidly evolving world of software development, staying ahead of the curve is crucial. The introduction of AI in Visual Studio, particularly GitHub Copilot, has revolutionized the way developers code. With Copilot integrated into Visual Studio, you can leverage AI to streamline your workflows, manage large codebases, analyze exceptions, and even generate commit messages. [&hellip;]<\/p>\n","protected":false},"author":143941,"featured_media":255385,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[6916,6887,155],"tags":[1055,6883,4381,6924,12],"class_list":["post-248265","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-2023-yearly-review","category-artificial-intelligence","category-visual-studio","tag-ai","tag-copilot","tag-github","tag-github-copilot","tag-visual-studio"],"acf":[],"blog_post_summary":"<p>In the rapidly evolving world of software development, staying ahead of the curve is crucial. The introduction of AI in Visual Studio, particularly GitHub Copilot, has revolutionized the way developers code. With Copilot integrated into Visual Studio, you can leverage AI to streamline your workflows, manage large codebases, analyze exceptions, and even generate commit messages. [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/248265","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=248265"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/248265\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/255385"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=248265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=248265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=248265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}