Skip to content

Repo sync for protected branch #10433

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 15 commits into from
Oct 4, 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
4 changes: 2 additions & 2 deletions docs/debugger/diagnostic-messages-in-the-output-window.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Send messages to the Output window
description: Write run-time messages to the Output window in Visual Studio using the Debug class or the Trace class, which are part of the System.Diagnostics class library.
ms.date: 11/08/2018
ms.date: 10/03/2024
ms.topic: how-to
helpviewer_keywords:
- diagnostic messages [C#]
Expand All @@ -28,7 +28,7 @@ You can write run-time messages to the **Output** window using the <xref:System.
## Output methods
The <xref:System.Diagnostics.Trace> and <xref:System.Diagnostics.Debug> classes provide the following output methods:

- Various `Write` methods, which output information without breaking execution. These methods replace the `Debug.Print` method used in previous versions of Visual Basic.
- Various [Write](/dotnet/api/system.diagnostics.debug#methods) methods, which output information without breaking execution. These methods replace the `Debug.Print` method used in previous versions of Visual Basic.

- <xref:System.Diagnostics.Debug.Assert%2A?displayProperty=fullName> and <xref:System.Diagnostics.Trace.Assert%2A?displayProperty=fullName> methods, which break execution and output information if a specified condition fails. By default, the `Assert` method displays the information in a dialog box. For more information, see [Assertions in managed code](../debugger/assertions-in-managed-code.md).

Expand Down
4 changes: 2 additions & 2 deletions docs/ide/code-styles-and-code-cleanup.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Code style options and code cleanup
description: Learn how to configure Visual Studio to apply code style preferences using the Code Cleanup (Visual Studio 2019) and Format Document (Visual Studio 2017) commands.
ms.date: 07/19/2024
ms.date: 10/03/2024
ms.topic: conceptual
author: mikejo5000
ms.author: mikejo
Expand Down Expand Up @@ -120,7 +120,7 @@ Most of the code cleanup settings map to one or more .NET code styles supported
|Remove unnecessary Imports or usings|[IDE0005](/dotnet/fundamentals/code-analysis/style-rules/ide0005)|
|Sort imports or usings|[dotnet_sort_system_directives_first](/dotnet/fundamentals/code-analysis/style-rules/dotnet-formatting-options#dotnet_sort_system_directives_first)</br>[dotnet_separate_import_directive_groups](/dotnet/fundamentals/code-analysis/style-rules/dotnet-formatting-options#dotnet_separate_import_directive_groups)|
|Apply file header preferences|[file_header_template](/dotnet/fundamentals/code-analysis/style-rules/ide0073#file_header_template)|
|Remove unused variables|[IDE0051](/dotnet/fundamentals/code-analysis/style-rules/ide0051)|
|Remove unused variables|[CS0219](/dotnet/csharp/misc/cs0219)|
|Apply object creation preferences|[visual_basic_style_prefer_simplified_object_creation](/dotnet/fundamentals/code-analysis/style-rules/ide0140#visual_basic_style_prefer_simplified_object_creation)|
|Apply IsNot preferences|[visual_basic_style_prefer_isnot_expression](/dotnet/fundamentals/code-analysis/style-rules/ide0084#visual_basic_style_prefer_isnot_expression)|
|Add 'this' or 'Me' qualification|[IDE0003-IDE0009](/dotnet/fundamentals/code-analysis/style-rules/ide0003-ide0009)|
Expand Down
9 changes: 8 additions & 1 deletion docs/ide/creating-solutions-and-projects.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Create projects & solutions"
description: Create Visual Studio solutions and projects and use them to store artifacts, including source code files, bitmaps, icons, and component and service references.
ms.date: 08/19/2024
ms.date: 10/03/2024
ms.topic: how-to
f1_keywords:
- vs.openprojectfromweb
Expand Down Expand Up @@ -100,6 +100,12 @@ After you create an empty solution, you can add new or existing projects or item

As noted earlier, you can also open code files without using a project or solution. To learn about developing code in this way, see [Develop code in Visual Studio without projects or solutions](../ide/develop-code-in-visual-studio-without-projects-or-solutions.md).

## Multi-project solution

You can create a solution that contains multiple projects. Start with an [empty solution](#create-empty-solutions) or a [solution containing a project](#create-a-project-by-using-a-project-template) and add multiple new or existing projects to it by using **Add** > **New project**/**Existing project**. For example, you can create a solution that contains a C# project and a Visual Basic project.

To learn more about building a solution that contains multiple projects, see [Create and remove project dependencies](how-to-create-and-remove-project-dependencies.md) and [Set multiple startup projects](how-to-set-multiple-startup-projects.md).

## Delete a solution, project, or item

You can use the right-click context menu to delete or remove solutions, projects, or items in Visual Studio, but that only removes them from the current solution or project.
Expand All @@ -124,3 +130,4 @@ You can access File Explorer in Windows by using Solution Explorer in Visual Stu
- [Introduction to projects and solutions](../get-started/tutorial-projects-solutions.md)
- [Manage project and solution properties](managing-project-and-solution-properties.md)
- [Filtered solutions in Visual Studio](filtered-solutions.md)
- [Build and clean projects and solutions](building-and-cleaning-projects-and-solutions-in-visual-studio.md)
2 changes: 1 addition & 1 deletion docs/ide/default-keyboard-shortcuts-in-visual-studio.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ 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/Copying-a-specific-cell-for-an-error-in/424849?q=error+copy&ftype=idea&stateGroup=active) related to this issue for more information.
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
4 changes: 3 additions & 1 deletion docs/ide/how-to-manage-editor-modes.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Full screen and virtual space mode
description: Learn how to manage the Visual Studio editor modes to display all of the tools and windows in a way that works best for you.
ms.date: 02/06/2023
ms.date: 10/03/2024
ms.topic: how-to
helpviewer_keywords:
- word wrap
Expand Down Expand Up @@ -31,6 +31,8 @@ With Visual Studio, you can view the code editor in various display modes.
> [!NOTE]
> The dialog boxes and menu commands you see might differ from those described in this article depending on your active settings or edition. To change your settings, for example to **General** or **Visual C++** settings, select **Tools** > **Import and Export Settings**, and then select **Reset all settings**.

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.

## Enable full screen mode

You can choose to hide all tool windows and view only document windows by enabling **Full Screen** mode.
Expand Down
3 changes: 2 additions & 1 deletion docs/version-control/git-line-staging.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ ms.topic: concept-article
author: ghogen
ms.author: ghogen
ms.manager: mijacobs

ms.subservice: general-ide
monikerRange: vs-2022

Expand Down Expand Up @@ -78,6 +77,8 @@ You can stage any chunk of code by using the Peek Difference UI. Hover over the
>
> :::image type="content" source="media/vs-2022/git-stage-change-difference.png" border="false" alt-text="Screenshot of the Stage Change difference view in Visual Studio 2022." lightbox="media/vs-2022/git-stage-change-difference.png":::

You can enable or disable the staging controls in the difference view by clicking the **Show staging controls** button.

## Commit staged changes

After you prepare your commit by reviewing and staging the desired changes, you can create your commit by using the **Git Changes** window. Enter a commit message and select **Commit Staged** to complete the process:
Expand Down