Skip to content

Commit 7222da4

Browse files
author
Jill Grant
authored
Merge pull request #13331 from Mikejo5000/mikejo-br25
Add Copilot content for Quick Actions light bulb
2 parents 5e2c368 + dcc01dc commit 7222da4

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

docs/debugger/debug-with-copilot.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ monikerRange: '>= vs-2022'
2323

2424
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.
2525

26-
In addition, Copilot provides more precise help for a few targeted scenarios including the following:
26+
In addition, Copilot provides more precise help for some targeted scenarios, such as the following:
2727

2828
- Exceptions
2929
- Variables
3030
- Deadlocks
31-
- Auto Insights for CPU Usage
31+
- Quick Actions (light bulb)
3232

3333
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.
3434

Loading

docs/ide/quick-actions.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ ms.subservice: general-ide
1010
dev_langs:
1111
- CSharp
1212
- VB
13+
ms.collection: ce-skilling-ai-copilot
1314

1415
#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.
1516
---
@@ -76,6 +77,13 @@ If there's an error in your code, and Visual Studio has a recommended fix, you s
7677
> [!TIP]
7778
> 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).
7879
80+
::: moniker range=">=vs-2022"
81+
## Get AI assistance
82+
83+
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.
84+
85+
:::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.":::
86+
::: moniker-end
7987

8088
## Related content
8189

0 commit comments

Comments
 (0)