diff --git a/.openpublishing.redirection.json b/.openpublishing.redirection.json index 9d261463ec1..77292085703 100644 --- a/.openpublishing.redirection.json +++ b/.openpublishing.redirection.json @@ -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", diff --git a/docs/debugger/debugger-windows.md b/docs/debugger/debugger-windows.md index a8cbd019046..96625a66069 100644 --- a/docs/debugger/debugger-windows.md +++ b/docs/debugger/debugger-windows.md @@ -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)| diff --git a/docs/debugger/toc.yml b/docs/debugger/toc.yml index 58dc8d4e477..16cda3394d3 100644 --- a/docs/debugger/toc.yml +++ b/docs/debugger/toc.yml @@ -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 diff --git a/docs/debugger/walkthrough-debugging-at-design-time.md b/docs/debugger/walkthrough-debugging-at-design-time.md index 4a9b1dbce0f..71b1bb51955 100644 --- a/docs/debugger/walkthrough-debugging-at-design-time.md +++ b/docs/debugger/walkthrough-debugging-at-design-time.md @@ -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. diff --git a/docs/ide/reference/immediate-window.md b/docs/ide/immediate-window.md similarity index 86% rename from docs/ide/reference/immediate-window.md rename to docs/ide/immediate-window.md index 13285d5fcf3..375c0ee852b 100644 --- a/docs/ide/reference/immediate-window.md +++ b/docs/ide/immediate-window.md @@ -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 @@ -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 @@ -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. @@ -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) \ No newline at end of file diff --git a/docs/ide/reference/media/paste-class-placeholder.png b/docs/ide/media/paste-class-placeholder.png similarity index 100% rename from docs/ide/reference/media/paste-class-placeholder.png rename to docs/ide/media/paste-class-placeholder.png diff --git a/docs/ide/reference/media/paste-json-example-code.png b/docs/ide/media/paste-json-example-code.png similarity index 100% rename from docs/ide/reference/media/paste-json-example-code.png rename to docs/ide/media/paste-json-example-code.png diff --git a/docs/ide/reference/media/paste-json-xml-class-lrg.png b/docs/ide/media/paste-json-xml-class-lrg.png similarity index 100% rename from docs/ide/reference/media/paste-json-xml-class-lrg.png rename to docs/ide/media/paste-json-xml-class-lrg.png diff --git a/docs/ide/reference/media/paste-json-xml-class-sml.png b/docs/ide/media/paste-json-xml-class-sml.png similarity index 100% rename from docs/ide/reference/media/paste-json-xml-class-sml.png rename to docs/ide/media/paste-json-xml-class-sml.png diff --git a/docs/ide/reference/paste-json-xml.md b/docs/ide/paste-json-xml.md similarity index 89% rename from docs/ide/reference/paste-json-xml.md rename to docs/ide/paste-json-xml.md index 5aa6e55b843..2ce52d20c10 100644 --- a/docs/ide/reference/paste-json-xml.md +++ b/docs/ide/paste-json-xml.md @@ -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. @@ -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) diff --git a/docs/ide/productivity-features.md b/docs/ide/productivity-features.md index 50c8728d6ec..07f1d900680 100644 --- a/docs/ide/productivity-features.md +++ b/docs/ide/productivity-features.md @@ -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. @@ -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). diff --git a/docs/ide/reference/new-file-command.md b/docs/ide/reference/new-file-command.md index 66f92b3ad78..1317e319c09 100644 --- a/docs/ide/reference/new-file-command.md +++ b/docs/ide/reference/new-file-command.md @@ -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) diff --git a/docs/ide/reference/open-file-command.md b/docs/ide/reference/open-file-command.md index 32c68d87a6a..82e7639fa57 100644 --- a/docs/ide/reference/open-file-command.md +++ b/docs/ide/reference/open-file-command.md @@ -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) diff --git a/docs/ide/reference/visual-studio-commands.md b/docs/ide/reference/visual-studio-commands.md index 2de82ce3b73..b6fe29d4bc7 100644 --- a/docs/ide/reference/visual-studio-commands.md +++ b/docs/ide/reference/visual-studio-commands.md @@ -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**. diff --git a/docs/ide/visual-csharp-intellisense.md b/docs/ide/visual-csharp-intellisense.md index d3a28ac9964..539f4bd50f4 100644 --- a/docs/ide/visual-csharp-intellisense.md +++ b/docs/ide/visual-csharp-intellisense.md @@ -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 diff --git a/docs/ide/whats-new-visual-studio-docs.md b/docs/ide/whats-new-visual-studio-docs.md index e073f753976..89e3aa89732 100644 --- a/docs/ide/whats-new-visual-studio-docs.md +++ b/docs/ide/whats-new-visual-studio-docs.md @@ -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 diff --git a/docs/ide/writing-code-in-the-code-and-text-editor.md b/docs/ide/writing-code-in-the-code-and-text-editor.md index 8af6ff8f5fb..63ad914fdb0 100644 --- a/docs/ide/writing-code-in-the-code-and-text-editor.md +++ b/docs/ide/writing-code-in-the-code-and-text-editor.md @@ -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 diff --git a/docs/toc.yml b/docs/toc.yml index b3a08464ec6..f64fa258d49 100644 --- a/docs/toc.yml +++ b/docs/toc.yml @@ -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 @@ -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 @@ -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