Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
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
5 changes: 3 additions & 2 deletions docs/ide/default-keyboard-shortcuts-in-visual-studio.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Keyboard shortcuts
description: Learn about the default keyboard shortcuts in Visual Studio that allow you to access a variety of commands and windows.
ms.date: 09/9/2024
ms.date: 3/26/2026
ms.topic: reference
helpviewer_keywords:
- shortcut keys [Visual Studio], keyboard binding schemes
Expand All @@ -25,7 +25,8 @@ For a list of common keyboard shortcuts and other productivity information, see:

For more information about accessibility in Visual Studio, see [Accessibility tips and tricks](../ide/reference/accessibility-tips-and-tricks.md) and [How to: Use the keyboard exclusively](../ide/reference/how-to-use-the-keyboard-exclusively.md).

The keyboard shortcuts in Visual Studio may vary depending on your keyboard layout and language settings. You can [identify the keyboard shortcut for a command](identifying-and-customizing-keyboard-shortcuts-in-visual-studio.md#identify-a-keyboard-shortcut) or [customize your keyboard shortcut](identifying-and-customizing-keyboard-shortcuts-in-visual-studio.md#customize-a-keyboard-shortcut). See the [Dev Community ticket](https://developercommunity.visualstudio.com/t/Issue-with-New-Ctrl---Comment-Shortc/10725157?q=keyboard+language&ftype=idea&stateGroup=active) related to this issue for more information.
> [!NOTE]
> The keyboard shortcuts in Visual Studio may vary depending on your keyboard layout and language settings. You can [identify the keyboard shortcut for a command](identifying-and-customizing-keyboard-shortcuts-in-visual-studio.md#identify-a-keyboard-shortcut) or [customize your keyboard shortcut](identifying-and-customizing-keyboard-shortcuts-in-visual-studio.md#customize-a-keyboard-shortcut). See the [Dev Community ticket](https://developercommunity.visualstudio.com/t/Issue-with-New-Ctrl---Comment-Shortc/10725157?q=keyboard+language&ftype=idea&stateGroup=active) related to this issue for more information.

## Printable shortcut cheatsheet

Expand Down
2 changes: 1 addition & 1 deletion docs/install/install-visual-studio.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ After you install the Visual Studio Installer, you can use it to customize your

:::image type="content" source="media/visualstudio/vs-installer-workloads.png" alt-text="Screenshot showing the Workloads tab of the Visual Studio Installer." lightbox="media/visualstudio/vs-installer-workloads.png":::

Review the workload summaries to decide which workload supports the features you need. For example, choose the **ASP.NET and web development** workload to edit ASP.NET Web pages with Web Live Preview or build responsive web apps with Blazor. You might choose from the **Desktop & Mobile** workloads to develop cross-platform apps with C#, or C++ projects that target C++20.
Review the workload summaries to decide which workload supports the features you need. For example, choose the **ASP.NET and web development** workload to build responsive web apps with Blazor. You might choose from the **Desktop & Mobile** workloads to develop cross-platform apps with C#, or C++ projects that target C++20.

1. After you choose the workloads that you want, select **Install**.

Expand Down
7 changes: 5 additions & 2 deletions docs/javascript/tutorial-asp-net-core-with-angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ Make sure to install the following:
1. Search for Angular in the search bar at the top and then select **Angular and ASP.NET Core**.

:::image type="content" source="media/vs-2022/angular-choose-template.png" alt-text="Screenshot showing choosing a template.":::



> [!NOTE]
> There is a compatibility issue with Angular 20.x.x and the **Angular and ASP.NET Core** template in Visual Studio 2022. To use Angular 20.x.x in Visual Studio 2022, it's recommended that you create an ASP.NET Core project first, add an Angular project to the solution, and then add a project reference to the Angular project from the ASP.NET Core project. You can use this method instead of using the combined template described in this article. For more information about the issue, see [Creating a new Solution with Angular](https://developercommunity.visualstudio.com/t/Creating-a-new-Solution-with-Angular-is/10918866?q=Angular).
::: moniker-end
Expand Down Expand Up @@ -181,6 +180,10 @@ Starting in Visual Studio 2022 version 17.3, you can publish the integrated solu

## Troubleshooting

### Outdated versions of Node.js or the template

If you experience issues not described elsewhere in this section, try updating Node.js to the current version and update Visual Studio to get the latest version of the template.

### Proxy error

You may see the following error:
Expand Down
4 changes: 4 additions & 0 deletions docs/javascript/tutorial-asp-net-core-with-react.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ If you don't see the weather forecast data in the browser, see [Troubleshooting]

## Troubleshooting

### Outdated versions of Node.js or the template

If you experience issues not described elsewhere in this section, try updating Node.js to the current version and update Visual Studio to get the latest version of the template.

### Proxy error

You may see the following error:
Expand Down
4 changes: 4 additions & 0 deletions docs/javascript/tutorial-asp-net-core-with-vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ Starting in Visual Studio 2022 version 17.3, you can publish the integrated solu

## Troubleshooting

### Outdated versions of Node.js or the template

If you experience issues not described elsewhere in this section, try updating Node.js to the current version and update Visual Studio to get the latest version of the template.

### Proxy error

You may see the following error:
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 44 additions & 4 deletions docs/python/overview-of-python-tools-for-visual-studio.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@ To get started with Visual Studio on Windows:

Visual Studio's **Python Environments** window gives you a single place to manage all of your global Python environments, conda environments, and virtual environments. Visual Studio automatically detects installations of Python in standard locations, and allows you to configure custom installations. With each environment, you can easily manage packages, open an interactive window for that environment, and access environment folders.

:::moniker range=">=vs-2022"
:::moniker range="visualstudio"

:::image type="content" source="media/visualstudio/environments-expanded-view-2022.png" alt-text="Screenshot that shows the expanded view of the Python Environments window in Visual Studio." lightbox="media/visualstudio/environments-expanded-view-2022.png":::

:::moniker-end

:::moniker range="vs-2022"

:::image type="content" source="media/environments/environments-expanded-view-2022.png" alt-text="Screenshot that shows the expanded view of the Python Environments window in Visual Studio." lightbox="media/environments/environments-expanded-view-2022.png":::

Expand All @@ -52,7 +58,13 @@ For more information, see:

Visual Studio provides a first-class Python editor, including syntax coloring, autocomplete across all your code and libraries, code formatting, signature help, refactoring, linting, and type hints. Visual Studio also provides unique features like class view, **Go to Definition**, **Find All References**, and code snippets. Direct integration with the [Interactive window](#interactive-window) helps you quickly develop existing Python code in a file.

:::moniker range="visualstudio"
:::image type="content" source="media/visualstudio/code-editing-completions-simple.png" alt-text="Screenshot that shows code completions for Python code in Visual Studio." border="false":::
:::moniker-end

:::moniker range="vs-2022"
:::image type="content" source="media/code-editing-completions-simple.png" alt-text="Screenshot that shows code completions for Python code in Visual Studio." border="false":::
:::moniker-end

For more information, see:

Expand All @@ -66,7 +78,13 @@ For more information, see:

For every Python environment known to Visual Studio, you can easily open the same interactive (REPL) environment for a Python interpreter directly within Visual Studio, rather than using a separate command prompt. You can easily switch between environments as well. To open a separate command prompt, select your desired environment in the **Python Environments** window, then select the **Open in PowerShell** command as explained earlier in the [Support for multiple interpreters](#support-for-multiple-interpreters) section.

:::moniker range=">=vs-2022"
:::moniker range="visualstudio"

:::image type="content" source="media/visualstudio/interactive-window.png" alt-text="Screenshot that shows the expanded view of the Python interactive window in Visual Studio." lightbox="media/visualstudio/interactive-window.png":::

:::moniker-end

:::moniker range="vs-2022"

:::image type="content" source="media/interactive-window-2022.png" alt-text="Screenshot that shows the expanded view of the Python interactive window in Visual Studio 2022." lightbox="media/interactive-window-2022.png":::

Expand All @@ -90,11 +108,23 @@ Visual Studio helps you manage the complexity of a project as it grows over time

The following image shows an example of a Visual Studio solution containing both Python and Flask projects in **Solution Explorer**.

:::moniker range="visualstudio"
:::image type="content" source="media/visualstudio/projects-solution-explorer-two-projects.png" alt-text="Screenshot that shows a Visual Studio solution containing both Python and Flask projects in Solution Explorer." lightbox="media/visualstudio/projects-solution-explorer-two-projects.png":::
:::moniker-end

:::moniker range="vs-2022"
:::image type="content" source="media/projects-solution-explorer-two-projects.png" alt-text="Screenshot that shows a Visual Studio solution containing both Python and Flask projects in Solution Explorer." lightbox="media/projects-solution-explorer-two-projects.png":::
:::moniker-end

Project and item templates automate the process of setting up different types of projects and files. The templates save you valuable time and relieve you from managing intricate and error-prone details. Visual Studio provides templates for web, Azure, data science, console, and other types of projects. You can find templates for files like Python classes, unit tests, Azure web configuration, HTML, and even Django apps.

:::moniker range="visualstudio"
:::image type="content" source="media/visualstudio/project-and-item-templates.png" alt-text="Screenshot of Python project and item templates in Visual Studio." lightbox="media/visualstudio/project-and-item-templates.png":::
:::moniker-end

:::moniker range="vs-2022"
:::image type="content" source="media/project-and-item-templates.png" alt-text="Screenshot of python project and item templates in Visual Studio." lightbox="media/project-and-item-templates.png":::
:::moniker-end

For more information, see:

Expand All @@ -109,7 +139,13 @@ For more information, see:

One of Visual Studio's strengths is its powerful debugger. For Python in particular, Visual Studio includes Python/C++ [mixed-mode debugging](debugging-mixed-mode-c-cpp-python-in-visual-studio.md), remote debugging on Linux, debugging within the **Interactive** window, and debugging Python unit tests.

:::moniker range="visualstudio"
:::image type="content" source="media/visualstudio/debugging-exception-popup.png" alt-text="Screenshot of the Visual Studio debugger for Python showing an exception popup dialog.":::
:::moniker-end

:::moniker range="vs-2022"
:::image type="content" source="media/debugging-exception-popup.png" alt-text="Screenshot of the Visual Studio debugger for Python showing an exception popup dialog.":::
:::moniker-end

In Visual Studio 2019 and later, you can run and debug code without having a Visual Studio project file. For an example, see [Quickstart: Open and run Python code in a folder](quickstart-05-python-visual-studio-open-folder.md).

Expand All @@ -119,7 +155,6 @@ For more information, see:
- [Python/C++ mixed-mode debugging](debugging-mixed-mode-c-cpp-python-in-visual-studio.md)
- [Remote debugging on Linux](debugging-python-code-on-remote-linux-machines.md)
- [Feature tour of the Visual Studio debugger](../debugger/debugger-feature-tour.md)

## Profiling tools with comprehensive reporting

Profiling explores how time is being spent within your application. Visual Studio supports profiling with CPython-based interpreters and includes the ability to compare performance between different profiling runs.
Expand All @@ -130,12 +165,17 @@ For more information, see:

- [Python profiling tools](profiling-python-code-in-visual-studio.md)
- [Visual Studio profiling feature tour](../profiling/profiling-feature-tour.md)

## Unit testing tools

Discover, run, and manage tests in Visual Studio **Test Explorer**, and easily debug unit tests.

:::moniker range="visualstudio"
:::image type="content" source="media/visualstudio/unit-test-debugging.png" alt-text="Screenshot that shows debugging output for a Python unit test in Visual Studio.":::
:::moniker-end

:::moniker range="vs-2022"
:::image type="content" source="media/unit-test-debugging.png" alt-text="Screenshot that shows debugging output for a Python unit test in Visual Studio.":::
:::moniker-end

For more information, see:

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 31 additions & 7 deletions docs/test/writing-unit-tests-for-c-cpp.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The following sections show the basic steps to get you started with C++ unit tes

::: moniker range=">=vs-2022"

### Create a test project in Visual Studio 2022
### Create a test project in Visual Studio

Define and run unit tests inside one or more **test projects**. A test project creates a separate app that calls the code in your executable and reports on its behavior. Create test projects in the same solution as the code you want to test.

Expand Down Expand Up @@ -81,7 +81,11 @@ If the test code doesn't export the functions that you want to test, add the out

In your unit test `.cpp` file, add an `#include` directive for any header files that declare the types and functions you want to test. Type `#include "`, and then IntelliSense activates to help you choose. Repeat for any more headers.

::: moniker range=">=vs-2022"
::: moniker range="visualstudio"
:::image type="content" source="media/visualstudio/cpp-add-includes-test-project.png" alt-text="Screenshot shows Solution Explorer with an #include statement with IntelliSense highlighting a header file in Visual Studio.":::
::: moniker-end

::: moniker range="vs-2022"
:::image type="content" source="media/vs-2022/cpp-add-includes-test-project-2022.png" alt-text="Screenshot shows Solution Explorer with an #include statement with IntelliSense highlighting a header file in Visual Studio 2022.":::
::: moniker-end

Expand All @@ -98,7 +102,11 @@ In your unit test `.cpp` file, add an `#include` directive for any header files

The `.cpp` file in your test project has a stub class and method defined for you. They show an example of how to write test code. The signatures use the TEST_CLASS and TEST_METHOD macros, which make the methods discoverable from the **Test Explorer** window.

::: moniker range=">=vs-2022"
::: moniker range="visualstudio"
:::image type="content" source="media/visualstudio/cpp-write-test-methods.png" alt-text="Screenshot shows a stub class and method using the TEST_CLASS and TEST_METHOD macros in Visual Studio.":::
::: moniker-end

::: moniker range="vs-2022"
:::image type="content" source="media/vs-2022/cpp-write-test-methods-2022.png" alt-text="Screenshot shows a stub class and method using the TEST_CLASS and TEST_METHOD macros in Visual Studio 2022.":::
::: moniker-end

Expand All @@ -124,7 +132,11 @@ You can add *traits* to test methods to specify test owners, priority, and other

1. On the **Test** menu, choose **Test Explorer**. The following illustration shows a test project before you run tests.

::: moniker range=">=vs-2022"
::: moniker range="visualstudio"
:::image type="content" source="media/visualstudio/cpp-test-explorer.png" alt-text="Screenshot shows Test Explorer before running tests in Visual Studio.":::
::: moniker-end

::: moniker range="vs-2022"
:::image type="content" source="media/vs-2022/cpp-test-explorer-2022.png" alt-text="Screenshot shows Test Explorer before running tests in Visual Studio 2022.":::
::: moniker-end

Expand All @@ -136,7 +148,11 @@ You can add *traits* to test methods to specify test owners, priority, and other

1. In **Test Explorer**, choose **Run All**, or select the specific tests you want to run. Right-click on a test for other options, including running it in debug mode with breakpoints enabled. After all the tests run, the window shows the tests that passed and the ones that failed.

::: moniker range=">=vs-2022"
::: moniker range="visualstudio"
:::image type="content" source="media/visualstudio/cpp-test-explorer-passed.png" alt-text="Screenshot shows Test Explorer after tests are run in Visual Studio.":::
::: moniker-end

::: moniker range="vs-2022"
:::image type="content" source="media/vs-2022/cpp-test-explorer-passed-2022.png" alt-text="Screenshot shows Test Explorer after tests are run in Visual Studio 2022.":::
::: moniker-end

Expand All @@ -161,14 +177,22 @@ Initialize CodeLens for a C++ unit test project in any of the following ways:

After you initialize CodeLens, you can see the test status icons above each unit test.

::: moniker range=">=vs-2022"
::: moniker range="visualstudio"
:::image type="content" source="media/visualstudio/cpp-test-codelens-icons.png" alt-text="Screenshot shows the C++ CodeLens icons in Visual Studio." lightbox="media/visualstudio/cpp-test-codelens-icons.png":::
::: moniker-end

::: moniker range="vs-2022"
:::image type="content" source="media/vs-2022/cpp-test-codelens-icons-2022.png" alt-text="Screenshot shows the C++ CodeLens icons in Visual Studio 2022." lightbox="media/vs-2022/cpp-test-codelens-icons-2022.png":::
::: moniker-end


Choose the icon for more information, or to run or debug the unit test:

::: moniker range=">=vs-2022"
::: moniker range="visualstudio"
:::image type="content" source="media/visualstudio/cpp-test-codelens-run-debug.png" alt-text="Screenshot shows C++ CodeLens icon after you select it for details in Visual Studio." lightbox="media/visualstudio/cpp-test-codelens-run-debug.png":::
::: moniker-end

::: moniker range="vs-2022"
:::image type="content" source="media/vs-2022/cpp-test-codelens-run-debug-2022.png" alt-text="Screenshot shows C++ CodeLens icon after you select it for details in Visual Studio 2022.":::
::: moniker-end

Expand Down
9 changes: 8 additions & 1 deletion docs/version-control/git-make-commit.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
title: Make a Git commit in Visual Studio
titleSuffix: ""
description: Make a Git commit in Visual Studio by using Git providers such as GitHub or Azure DevOps, or locally with no provider at all.
ms.date: 11/25/2025
ms.date: 03/12/2026
ms.custom: awp-ai
ms.update-cycle: 180-days
ms.topic: how-to
author: ghogen
Expand Down Expand Up @@ -108,6 +109,12 @@ The code review feedback shows up as comments, which show brief summary of the p

To remove all comments, use the **X** in the Git Changes window to close the Copilot code review link.

### Navigate comments in the comment list

The **Git Changes** window also shows a list of all Copilot review comments, organized by file. You can double-click any comment in the list to navigate directly to that comment located inline with the corresponding code in the editor.

![Screenshot showing code review comments for each file in the Git Changes window.](./media/visualstudio/local-code-review-comment-list-cropped.png)

:::moniker-end

:::moniker range="vs-2022"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.