diff --git a/docs/debugger/debug-with-copilot.md b/docs/debugger/debug-with-copilot.md index 81b372bdec9..e35001544b8 100644 --- a/docs/debugger/debug-with-copilot.md +++ b/docs/debugger/debug-with-copilot.md @@ -23,12 +23,12 @@ monikerRange: '>= vs-2022' In this article, you'll learn how to debug more efficiently using GitHub Copilot. Copilot can provide code fixes along with in-depth analysis and explanations of how code works. It helps with proposed fixes to bugs, and explains things such as exceptions. Copilot understands call stacks, frames, variable names, and values. As a result, you can interact with the debugger-aware AI to ask detailed questions related to your code and to debugging issues in general. -In addition, Copilot provides more precise help for a few targeted scenarios including the following: +In addition, Copilot provides more precise help for some targeted scenarios, such as the following: - Exceptions - Variables - Deadlocks -- Auto Insights for CPU Usage +- Quick Actions (light bulb) To get AI assistance while you're debugging in these scenarios, look for the **Ask Copilot** ![Screenshot of Ask Copilot button.](../debugger/media/vs-2022/debug-with-copilot-ask-copilot-button.png) button. In these scenarios, Copilot already knows the context for your questions. For example, it knows the current call stack, the code line you are asking about, and the name of the exception (if one occurred), so you don't need to provide context yourself in chat. Copilot also provides suggestions for the use of conditional breakpoints and tracepoints. diff --git a/docs/ide/media/vs-2022/quick-action-lightbulb-github-copilot.png b/docs/ide/media/vs-2022/quick-action-lightbulb-github-copilot.png new file mode 100644 index 00000000000..7eb7fa1c2b1 Binary files /dev/null and b/docs/ide/media/vs-2022/quick-action-lightbulb-github-copilot.png differ diff --git a/docs/ide/quick-actions.md b/docs/ide/quick-actions.md index 928abb42ae2..4fc73ff5cdc 100644 --- a/docs/ide/quick-actions.md +++ b/docs/ide/quick-actions.md @@ -10,6 +10,7 @@ ms.subservice: general-ide dev_langs: - CSharp - VB +ms.collection: ce-skilling-ai-copilot #customer intent: As a developer, I want to use Quick Actions in Visual Studio, so I can modify my code files to apply updates and fixes or generate code. --- @@ -76,6 +77,13 @@ If there's an error in your code, and Visual Studio has a recommended fix, you s > [!TIP] > You can turn off some of the code fix Quick Actions. For more informatio, see [Disable source code analysis for .NET](../code-quality/disable-code-analysis.md). +::: moniker range=">=vs-2022" +## Get AI assistance + +If you have [Copilot](../ide/visual-studio-github-copilot-extension.md), you can get AI assistance while using the Quick Actions light bulb. From the light bulb menu, choose **Fix with Copilot**. This opens an inline chat with GitHub Copilot Chat, offering you an available fix. + +:::image type="content" source="../ide/media/vs-2022/quick-action-lightbulb-github-copilot.png" border="false" alt-text="Screenshot that shows the Quick Action GitHub Copilot option for the light bulb."::: +::: moniker-end ## Related content