Skip to content

Repo sync for protected branch #10385

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions docs/debugger/autos-and-locals-windows.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Inspect variables - Autos and Locals windows
description: Inspect variables in the Autos and Locals windows while debugging in Visual Studio. The Autos and Locals windows show variable values while you are debugging.
ms.date: 07/25/2024
ms.date: 09/06/2024
ms.topic: how-to
f1_keywords:
- vs.debug.autos
Expand Down Expand Up @@ -78,7 +78,7 @@ To make your search more or less thorough, use the **Search Deeper** dropdown li
> [!NOTE]
> This feature is supported for .NET Core 3.0 or higher.

You can quickly inspect objects by their properties in the Autos and Locals windows with the **Pinnable Properties** tool. To use this tool, hover over a property and select the pin icon that appears or right-click and select the **Pin Member as Favorite** option in the resulting context menu. This bubbles up that property to the top of the object's property list, and the property name and value is displayed in the **Value** column. To unpin a property, select the pin icon again or select the **Unpin Member as Favorite** option in the context menu.
You can quickly inspect objects by their properties in the Autos and Locals windows with the **Pinnable Properties** tool. To use this tool, hover over a property and select the pin icon that appears or right-click and select the **Pin Member as Favorite** option in the resulting context menu. This bubbles up that property to the top of the object's property list, and the property name and value are displayed in the **Value** column. To unpin a property, select the pin icon again or select the **Unpin Member as Favorite** option in the context menu.

![Screenshot of Pin properties in the Locals window.](../debugger/media/basic-pin.gif "Pin properties in the Locals window")

Expand All @@ -103,6 +103,12 @@ Set a breakpoint and start debugging. When the breakpoint is hit, execution paus
![Screenshot of Debug Location toolbar.](../debugger/media/debuglocationtoolbar.png "Debug Location toolbar")
::: moniker-end

::: moniker range=">= vs-2022"
## Get AI assistance

If you have [Copilot](../ide/visual-studio-github-copilot-extension.md), you can get AI assistance while you're looking at variables in the Autos or Locals windows, or in data tips. Right-click on a variable and use the **Ask Copilot** ![Screenshot of Ask Copilot button.](../debugger/media/vs-2022/debug-with-copilot-ask-copilot-button.png) button. In this scenario, Copilot already knows the context for your question, so you don't need to provide context yourself in chat. For more information, see [Debug with Copilot](../debugger/debug-with-copilot.md).
::: moniker-end

## <a name="bkmk_whatvariables"></a> Variables in the Autos window (C#, C++, Visual Basic, Python)

Different code languages display different variables in the **Autos** window.
Expand Down
8 changes: 6 additions & 2 deletions docs/debugger/debug-with-copilot.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Debug with GitHub Copilot
description: Use Copilot to help debug your apps and provide performance insights.
ms.date: 05/21/2024
ms.date: 09/06/2024
ms.topic: how-to
dev_langs:
- CSharp
Expand All @@ -26,6 +26,7 @@ In this article, you'll learn how to debug more efficiently using GitHub Copilot
In addition, Copilot provides more precise help for a few targeted scenarios including the following:

- Exceptions
- Variables
- Deadlocks
- Auto Insights for CPU Usage

Expand Down Expand Up @@ -98,6 +99,9 @@ The following simple example shows how to get AI assistance using the inline Cha

1. Right-click in the code and choose **Ask Copilot** to open the inline Chat view.

> [!TIP]
> Alternatively, you can right-click a variable in the Autos or Locals window, or in a data tip, and choose **Ask Copilot**. This provides Copilot with the variable name and context, so you don't need to provide context yourself in the chat.

1. Type the following question in the inline Chat view:

```
Expand Down Expand Up @@ -215,6 +219,6 @@ In this example, we show AI suggestions for a conditional breakpoint. For tracep

In addition to interactive debugging assistance, Copilot provides detailed information in the CPU Usage [Auto Insights](../profiling/cpu-insights.md). It provides information and insights related to a set of specific performance insights. With Copilot, ask questions about functions on the identified hot paths in your code, which can help you produce more efficient or cost-effective code.

When the CPU Usage tool provides auto insights in the Top Insights section, select **Ask Copilot** to learn from Copilot and start asking questions.
The **Ask Copilot** button appears even if no specific performance insights are identified. Select **Ask Copilot** to learn from Copilot and start asking questions.

[ ![Animation of using Copilot with CPU Usage.](../debugger/media/vs-2022/debug-with-copilot-top-insights.gif) ](../debugger/media/vs-2022/debug-with-copilot-top-insights.gif#lightbox)
16 changes: 11 additions & 5 deletions docs/debugger/view-data-values-in-data-tips-in-the-code-editor.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: View and change variable values with data tips
description: Use data tips while debugging code in the Visual Studio code editor to view and change variable values like arrays and structures.
ms.date: 08/14/2024
description: Use data tips while debugging code in the Visual Studio Code editor to view and change variable values like arrays and structures.
ms.date: 09/06/2024
ms.topic: how-to
dev_langs:
- CSharp
Expand All @@ -17,7 +17,7 @@ ms.author: mikejo
manager: mijacobs
ms.subservice: debug-diagnostics

#customer intent: As a developer, I want to use data tips in the Visual Studio code editor, so I can view and change variable values when I debug my code.
#customer intent: As a developer, I want to use data tips in the Visual Studio Code editor, so I can view and change variable values when I debug my code.
---

# View and change variable values with DataTips in the code editor
Expand Down Expand Up @@ -67,7 +67,7 @@ When you hover over a variable to view the data tip, you can make the data tip t

To enable transparency, follow these steps:

1. In the Visual Studio code editor, select inside a data tip, and then select and hold Ctrl.
1. In the Visual Studio Code editor, select inside a data tip, and then select and hold Ctrl.

1. To maintain transparency, continue to hold Ctrl.

Expand Down Expand Up @@ -99,7 +99,7 @@ You can pin a data tip to keep it open on the code editor surface. You can also

To pin a data tip, follow these steps:

1. In the Visual Studio code editor, hover over a variable to show the data tip.
1. In the Visual Studio Code editor, hover over a variable to show the data tip.

1. In the data tip, use the pushpin to select **Pin to source**:

Expand Down Expand Up @@ -231,6 +231,12 @@ The following image shows the various options on the right-click menu for the me

::: moniker-end

::: moniker range=">= vs-2022"
## Get AI assistance

If you have [Copilot](../ide/visual-studio-github-copilot-extension.md), you can get AI assistance while you're looking at variables in data tips. Right-click on a variable and use the **Ask Copilot** ![Screenshot of Ask Copilot button.](../debugger/media/vs-2022/debug-with-copilot-ask-copilot-button.png) button. In this scenario, Copilot already knows the context for your question, so you don't need to provide context yourself in chat. For more information, see [Debug with Copilot](../debugger/debug-with-copilot.md).
::: moniker-end

## Visualize complex data types

Visualizers display information in a more meaningful, and sometimes graphical, manner. Examples of visualizers include XML, HTML, JSON, and the [Text Visualizer](../debugger/string-visualizer-dialog-box.md). You can use visualizations to examine complex data types in your code during debugging.
Expand Down
12 changes: 10 additions & 2 deletions docs/install/install-visual-studio.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Install Visual Studio and choose your preferred features
titleSuffix: ''
description: Learn how to install Visual Studio quickly. To reduce the installation footprint, choose your preferred features.
ms.date: 06/18/2024
ms.date: 09/06/2024
ms.custom: vs-acquisition
ms.topic: install-set-up-deploy
helpviewer_keywords:
Expand Down Expand Up @@ -270,7 +270,15 @@ You can reduce the installation footprint of Visual Studio on your system drive.
>
> If you installed Visual Studio on your computer before, you won't be able to change the **Shared components, tools, and SDKs** path. It appears greyed out. This location is shared by all installations of Visual Studio.

## Step 8 - Start developing
## Step 8 - Sign in to your account (optional)

While you don't have to sign in, there are many [advantages](../ide/signing-in-to-visual-studio.md#benefits-why-sign-in) to doing so.

You can evaluate a free trial of [Visual Studio Professional or Visual Studio Enterprise](https://visualstudio.microsoft.com/vs/compare/) for 30 days. If you sign in, you can extend the trial period to 90 days. The 90-day trial extension works only one time. To continue using Visual Studio after a trial period ends, unlock it with an [online subscription](../ide/how-to-unlock-visual-studio.md#use-an-online-subscription) or a [product key](../ide/how-to-unlock-visual-studio.md#enter-a-product-key).

Visual Studio Community doesn't require you to sign in. However, if the installation prompts you to sign in periodically, [sign in](../ide/signing-in-to-visual-studio.md) to continue using Visual Studio Community without interruptions.

## Step 9 - Start developing

After installation is complete, you can get started developing with Visual Studio.

Expand Down
Binary file added docs/profiling/media/vs-2022/top-functions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/profiling/media/vs-2022/top-insights.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.