Skip to content

Commit

Permalink
Merge pull request #10483 from MicrosoftDocs/main638670566210579016sy…
Browse files Browse the repository at this point in the history
…nc_temp

For protected branch, push strategy should use PR and merge to target branch method to work around git push error
  • Loading branch information
learn-build-service-prod[bot] authored Nov 13, 2024
2 parents 40e635e + 819a8f0 commit dacf989
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/debugger/debug-with-copilot.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions docs/ide/quick-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
---
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit dacf989

Please sign in to comment.