Skip to content

Repo sync for protected branch #11002

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 13 commits into from
Aug 11, 2025
Merged
10 changes: 10 additions & 0 deletions .openpublishing.redirection.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
{
"redirections": [
{
"source_path": "docs/ide/reference/paste-json-xml.md",
"redirect_url": "/visualstudio/ide/paste-json-xml",
"redirect_document_id": false
},
{
"source_path": "docs/ide/reference/immediate-window.md",
"redirect_url": "/visualstudio/ide/immediate-window",
"redirect_document_id": false
},
{
"source_path": "docs/ide/reference/miscellaneous-files.md",
"redirect_url": "/visualstudio/ide/miscellaneous-files",
Expand Down
2 changes: 1 addition & 1 deletion docs/debugger/debugger-windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ You can open most debugger windows while you're debugging your program. To see a
|Autos|CTRL+ALT+V, A|[Autos and Locals Windows](../debugger/autos-and-locals-windows.md)|
|Locals|CTRL+ALT+V, L|[Autos and Locals Windows](../debugger/autos-and-locals-windows.md)|
|Call Stacks|CTRL+ALT+C|[How to: Use the Call Stack Window](../debugger/how-to-use-the-call-stack-window.md)|
|Immediate|CTRL+ALT+I|[Immediate Window](../ide/reference/immediate-window.md)|
|Immediate|CTRL+ALT+I|[Immediate Window](../ide/immediate-window.md)|
|Parallel Stacks|CTR:+SHIFT+D, S|[Using the Parallel Stacks Window](../debugger/using-the-parallel-stacks-window.md)|
|Parallel Watch|CTR:+SHIFT+D, (1, 2, 3, 4)|[Get started Debugging Multithreaded Applications](../debugger/get-started-debugging-multithreaded-apps.md)|
|Threads|CTRL+ALT+H|[View threads in the Visual Studio debugger](../debugger/walkthrough-debugging-a-multithreaded-application.md)|
Expand Down
4 changes: 2 additions & 2 deletions docs/debugger/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,8 @@
href: /visualstudio/bridge/bridge-to-kubernetes-vs
- name: Debug with Container Tools >>
href: ../containers/edit-and-refresh.md
- name: Immediate window
href: ../ide/reference/immediate-window.md
- name: Use the Immediate window
href: ../ide/immediate-window.md
- name: Work with...
items:
- name: .NET
Expand Down
2 changes: 1 addition & 1 deletion docs/debugger/walkthrough-debugging-at-design-time.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ To debug XAML code behind an app from the XAML designer, such as declarative dat

## Use the Immediate window

You can use the Visual Studio **Immediate** window to execute a function or subroutine without running your app. If the function or subroutine contains a breakpoint, Visual Studio will break at the breakpoint. You can then use the debugger windows to examine your program state. This feature is called *debugging at design time*. For detailed information, see [Use the Immediate window](../ide/reference/immediate-window.md)
You can use the Visual Studio **Immediate** window to execute a function or subroutine without running your app. If the function or subroutine contains a breakpoint, Visual Studio will break at the breakpoint. You can then use the debugger windows to examine your program state. This feature is called *debugging at design time*. For detailed information, see [Use the Immediate window](../ide/immediate-window.md)

The following example is in Visual Basic. You can also use the **Immediate** window at design time in C#, F#, and C++/CLI apps. For C++/CLI, compile without the /clr option to use the Immediate window.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The **Immediate** window supports IntelliSense.

## Display the values of variables

The **Immediate** window is useful when you debug an app. For example, to check the value of a variable `varA`, you can use the [Print command](../../ide/reference/print-command.md):
The **Immediate** window is useful when you debug an app. For example, to check the value of a variable `varA`, you can use the [Print command](../ide/reference/print-command.md):

```cmd
>Debug.Print varA
Expand All @@ -41,7 +41,7 @@ The question mark (`?`) is an alias for `Debug.Print`, so this command can also
Both versions of this command return the value of the variable `varA`.

> [!TIP]
> To issue a Visual Studio command in the **Immediate** window, you must preface the command with a greater than sign (`>`). To enter multiple commands, switch to the [Command window](command-window.md).
> To issue a Visual Studio command in the **Immediate** window, you must preface the command with a greater than sign (`>`). To enter multiple commands, switch to the [Command window](../ide/reference/command-window.md).

## Design-time expression evaluation

Expand Down Expand Up @@ -71,7 +71,7 @@ You can use the **Immediate** window to execute a function or subroutine at desi

The **Immediate** window runs `MyFunction` and displays `4`.

If the function or subroutine contains a breakpoint, Visual Studio breaks execution at the appropriate point. You can then use the debugger windows to examine your program state. For more information, see [Walkthrough: Debug at design time](../../debugger/walkthrough-debugging-at-design-time.md).
If the function or subroutine contains a breakpoint, Visual Studio breaks execution at the appropriate point. You can then use the debugger windows to examine your program state. For more information, see [Walkthrough: Debug at design time](../debugger/walkthrough-debugging-at-design-time.md).

You can't use design-time expression evaluation in project types that require starting up an execution environment, including Visual Studio Tools for Office projects, web projects, Smart Device projects, and SQL projects.

Expand Down Expand Up @@ -124,9 +124,9 @@ In some settings configurations, first-chance exception notifications are displa

## Related content

- [Navigating through code by using the debugger](../../debugger/navigating-through-code-with-the-debugger.md)
- [Command Window](../../ide/reference/command-window.md)
- [Overview of the debugger](../../debugger/debugger-feature-tour.md)
- [Debug at design time](../../debugger/walkthrough-debugging-at-design-time.md)
- [Visual Studio Command Aliases](../../ide/reference/visual-studio-command-aliases.md)
- [Use regular expressions in Visual Studio](../../ide/using-regular-expressions-in-visual-studio.md)
- [Navigating through code by using the debugger](../debugger/navigating-through-code-with-the-debugger.md)
- [Command Window](../ide/reference/command-window.md)
- [Overview of the debugger](../debugger/debugger-feature-tour.md)
- [Debug at design time](../debugger/walkthrough-debugging-at-design-time.md)
- [Visual Studio Command Aliases](../ide/reference/visual-studio-command-aliases.md)
- [Use regular expressions in Visual Studio](../ide/using-regular-expressions-in-visual-studio.md)
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ In Visual Studio, you can copy text from JSON or XML files and then paste the te
:::image type="content" source="media/paste-json-xml-class-sml.png" alt-text="Screenshot of the Paste Special option from the Edit menu in Visual Studio." lightbox="media/paste-json-xml-class-lrg.png":::

> [!TIP]
> If you don't see the **Paste Special** option on the **Edit** menu, make sure that you have at least one of the following [**workloads**](../../install/modify-visual-studio.md#change-workloads-or-individual-components) installed: **ASP.NET and web development**, **Azure development**, or **.NET desktop development**. Then, make sure that you select the program file for your app. For example, for a C# app, select the **Program.cs** file in [Solution Explorer](../use-solution-explorer.md).
> If you don't see the **Paste Special** option on the **Edit** menu, make sure that you have at least one of the following [**workloads**](../install/modify-visual-studio.md#change-workloads-or-individual-components) installed: **ASP.NET and web development**, **Azure development**, or **.NET desktop development**. Then, make sure that you select the program file for your app. For example, for a C# app, select the **Program.cs** file in [Solution Explorer](../ide/use-solution-explorer.md).

**JSON** (**J**ava**S**cript **O**bject **N**otation) and **XML** (e**X**tensible **M**arkup **L**anguage) are similar in that they're both used to store and transport data. JSON, however, is less verbose and can use arrays.

Expand Down Expand Up @@ -163,5 +163,5 @@ namespace PasteDemo

## See also

- [Features of the code editor](../../ide/writing-code-in-the-code-and-text-editor.md)
- [Productivity guide for Visual Studio](../productivity-features.md)
- [Features of the code editor](../ide/writing-code-in-the-code-and-text-editor.md)
- [Productivity guide for Visual Studio](../ide/productivity-features.md)
4 changes: 2 additions & 2 deletions docs/ide/productivity-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Write code more quickly by using the following features.

To insert a snippet, on the menu bar, choose **Edit** > **IntelliSense** > **Insert Snippet** or **Surround With**, or open the shortcut menu in a file and choose **Snippet** > **Insert Snippet** or **Surround With**. For more information, see [Code Snippets](../ide/code-snippets.md).

- **[Paste JSON or XML as classes](reference/paste-json-xml.md)**. Copy any JSON or XML text fragment to the clipboard and then paste it as strongly typed .NET classes into any C# or Visual Basic code file. To do so, use **Edit** > **Paste Special** > **Paste JSON As Classes** (or **Paste XML As Classes**).
- **[Paste JSON or XML as classes](../ide/paste-json-xml.md)**. Copy any JSON or XML text fragment to the clipboard and then paste it as strongly typed .NET classes into any C# or Visual Basic code file. To do so, use **Edit** > **Paste Special** > **Paste JSON As Classes** (or **Paste XML As Classes**).

- **Fix code errors inline**. Quick Actions let you easily refactor, generate, or otherwise modify code with a single action. These actions can be applied using the light bulb ![Light bulb icon](media/light-bulb-icon.png) or screwdriver ![Screwdriver icon](media/screwdriver-icon.png) icons, or by pressing **Alt**+**Enter** or **Ctrl**+**.** when your cursor is on the appropriate line of code. See [Quick Actions](quick-actions.md) for more information.

Expand Down Expand Up @@ -158,7 +158,7 @@ Debugging can take time, but the following tips can help you speed up the proces

To add a DataTip, the debugger must be in break mode. Place the cursor on the variable, and then choose the pin button on the DataTip that appears. When debugging is stopped, a blue pin icon appears in the source file next to the line of code that contains the variable. If you point to the blue pin, the value of the variable from the most recent debugging session appears.

- **Clear the Immediate window**. You can erase the contents of the [Immediate window](../ide/reference/immediate-window.md) at design time by entering `>cls` or `>Edit.ClearAll`
- **Clear the Immediate window**. You can erase the contents of the [Immediate window](../ide/immediate-window.md) at design time by entering `>cls` or `>Edit.ClearAll`

For more information about other commands, see [Visual Studio command aliases](../ide/reference/visual-studio-command-aliases.md).

Expand Down
2 changes: 1 addition & 1 deletion docs/ide/reference/new-file-command.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@ This example creates a new web page "test1.htm" and opens it in the source code

- [Visual Studio Commands](../../ide/reference/visual-studio-commands.md)
- [Command Window](../../ide/reference/command-window.md)
- [Immediate Window](../../ide/reference/immediate-window.md)
- [Immediate Window](../../ide/immediate-window.md)
- [Find/Command Box](../../ide/find-command-box.md)
- [Visual Studio Command Aliases](../../ide/reference/visual-studio-command-aliases.md)
2 changes: 1 addition & 1 deletion docs/ide/reference/open-file-command.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ File.OpenFile "C:\My Projects\project1\Test1.css" /e:"Source Code (text) Editor"

- [Visual Studio commands](../../ide/reference/visual-studio-commands.md)
- [Command window](../../ide/reference/command-window.md)
- [Immediate window](../../ide/reference/immediate-window.md)
- [Immediate window](../../ide/immediate-window.md)
- [Find/Command box](../../ide/find-command-box.md)
- [Visual Studio command aliases](../../ide/reference/visual-studio-command-aliases.md)
2 changes: 1 addition & 1 deletion docs/ide/reference/visual-studio-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ms.subservice: general-ide
---
# Visual Studio commands

You can enter Visual Studio commands in the [**Command** window](../../ide/reference/command-window.md), [**Immediate** window](../../ide/reference/immediate-window.md), or **Find/Command** box. In each case, the greater than sign (`>`) indicates that a command, rather than a search or debug operation, follows.
You can enter Visual Studio commands in the [**Command** window](../../ide/reference/command-window.md), [**Immediate** window](../../ide/immediate-window.md), or **Find/Command** box. In each case, the greater than sign (`>`) indicates that a command, rather than a search or debug operation, follows.

You can find a complete list of commands and their syntax on the **Keyboard** page in **Tools** > **Options** > **Environment**.

Expand Down
2 changes: 1 addition & 1 deletion docs/ide/visual-csharp-intellisense.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ms.date: 03/28/2024
---
# C# IntelliSense

C# IntelliSense is a language-specific code-completion aid. It's available to you when you write C# code in the code editor and debug it in the [Immediate mode](../ide/reference/immediate-window.md) command window.
C# IntelliSense is a language-specific code-completion aid. It's available to you when you write C# code in the code editor and debug it in the [Immediate mode](../ide/immediate-window.md) command window.

## Completion lists

Expand Down
2 changes: 1 addition & 1 deletion docs/ide/whats-new-visual-studio-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ The following people contributed to the Visual Studio docs during this period. T
- [Visual Studio performance tips and tricks](../ide/visual-studio-performance-tips-and-tricks.md) - Update Visual Studio performance tips
- [What's new in Visual Studio 2022](../ide/whats-new-visual-studio-2022.md) - Update What's New for 17.14
- [Add or remove imported namespaces (Visual Basic)](../ide/how-to-add-or-remove-imported-namespaces-visual-basic.md) - Update procedure for Visual Basic Import namespaces
- [Use the Immediate window](../ide/reference/immediate-window.md) - Update article on the Immediate window
- [Use the Immediate window](../ide/immediate-window.md) - Update article on the Immediate window
- [JavaScript IntelliSense](../ide/javascript-intellisense.md) - Refactor JavaScript/TypeScript editor content
- [Add Visual Studio editor support for other languages](../ide/adding-visual-studio-editor-support-for-other-languages.md) - Updates for user feedback
- [Customize the scroll bar](../ide/how-to-track-your-code-by-customizing-the-scrollbar.md) - Updates for user feedback on track changes
Expand Down
2 changes: 1 addition & 1 deletion docs/ide/writing-code-in-the-code-and-text-editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Visual Studio offers a few time-savers when it comes to copying and pasting code

:::image type="content" source="media/vs-2022/copy-trim-indentation.png" alt-text="Screenshot that shows a before and after comparison to highlight the Copy and Trim Indentation feature.":::

- **[Paste JSON or XML as classes](reference/paste-json-xml.md)**. Copy any JSON or XML text fragment to the clipboard and then paste it as strongly typed .NET classes into any C# or Visual Basic code file. To do so, use **Edit** > **Paste Special** > **Paste JSON As Classes** (or **Paste XML As Classes**).
- **[Paste JSON or XML as classes](../ide/paste-json-xml.md)**. Copy any JSON or XML text fragment to the clipboard and then paste it as strongly typed .NET classes into any C# or Visual Basic code file. To do so, use **Edit** > **Paste Special** > **Paste JSON As Classes** (or **Paste XML As Classes**).

::: moniker-end

Expand Down
8 changes: 4 additions & 4 deletions docs/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,8 @@
href: ide/how-to-track-your-code-by-customizing-the-scrollbar.md
- name: Set bookmarks in code
href: ide/setting-bookmarks-in-code.md
- name: Paste JSON or XML as classes
href: ide/paste-json-xml.md
- name: CodeLens
items:
- name: Find code history with CodeLens
Expand Down Expand Up @@ -608,8 +610,8 @@
href: /troubleshoot/developer/visualstudio/ide/troubleshoot-class-designer-errors?toc=%2Fvisualstudio%2Ftoc.json
- name: Improve your code
href: ide/find-and-fix-code-errors.md
- name: Immediate window
href: ide/reference/immediate-window.md
- name: Use the Immediate window
href: ide/immediate-window.md
- name: Tips and tricks
items:
- name: Productivity features
Expand Down Expand Up @@ -910,8 +912,6 @@
href: ide/reference/command-window.md
- name: Error List window
href: ide/reference/error-list-window.md
- name: Paste JSON or XML as classes
href: ide/reference/paste-json-xml.md
- name: Options
items:
- name: Environment
Expand Down