Skip to content

Commit 04c2ff8

Browse files
Learn Build Service GitHub AppLearn Build Service GitHub App
authored andcommitted
Merging changes synced from https://github.com/MicrosoftDocs/visualstudio-docs-pr (branch live)
2 parents af9edda + 4df1f16 commit 04c2ff8

25 files changed

+146
-131
lines changed

.openpublishing.redirection.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
{
22
"redirections": [
3+
{
4+
"source_path": "docs/ide/reference/options-text-editor-all-languages-tabs.md",
5+
"redirect_url": "/visualstudio/ide/options-text-editor-all-languages-tabs",
6+
"redirect_document_id": false
7+
},
8+
{
9+
"source_path": "docs/ide/reference/paste-json-xml.md",
10+
"redirect_url": "/visualstudio/ide/paste-json-xml",
11+
"redirect_document_id": false
12+
},
13+
{
14+
"source_path": "docs/ide/reference/immediate-window.md",
15+
"redirect_url": "/visualstudio/ide/immediate-window",
16+
"redirect_document_id": false
17+
},
318
{
419
"source_path": "docs/ide/reference/miscellaneous-files.md",
520
"redirect_url": "/visualstudio/ide/miscellaneous-files",

docs/debugger/debugger-windows.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ You can open most debugger windows while you're debugging your program. To see a
2222
|Autos|CTRL+ALT+V, A|[Autos and Locals Windows](../debugger/autos-and-locals-windows.md)|
2323
|Locals|CTRL+ALT+V, L|[Autos and Locals Windows](../debugger/autos-and-locals-windows.md)|
2424
|Call Stacks|CTRL+ALT+C|[How to: Use the Call Stack Window](../debugger/how-to-use-the-call-stack-window.md)|
25-
|Immediate|CTRL+ALT+I|[Immediate Window](../ide/reference/immediate-window.md)|
25+
|Immediate|CTRL+ALT+I|[Immediate Window](../ide/immediate-window.md)|
2626
|Parallel Stacks|CTR:+SHIFT+D, S|[Using the Parallel Stacks Window](../debugger/using-the-parallel-stacks-window.md)|
2727
|Parallel Watch|CTR:+SHIFT+D, (1, 2, 3, 4)|[Get started Debugging Multithreaded Applications](../debugger/get-started-debugging-multithreaded-apps.md)|
2828
|Threads|CTRL+ALT+H|[View threads in the Visual Studio debugger](../debugger/walkthrough-debugging-a-multithreaded-application.md)|

docs/debugger/toc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,8 @@
362362
href: /visualstudio/bridge/bridge-to-kubernetes-vs
363363
- name: Debug with Container Tools >>
364364
href: ../containers/edit-and-refresh.md
365-
- name: Immediate window
366-
href: ../ide/reference/immediate-window.md
365+
- name: Use the Immediate window
366+
href: ../ide/immediate-window.md
367367
- name: Work with...
368368
items:
369369
- name: .NET

docs/debugger/walkthrough-debugging-at-design-time.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ To debug XAML code behind an app from the XAML designer, such as declarative dat
2323

2424
## Use the Immediate window
2525

26-
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)
26+
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)
2727

2828
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.
2929

docs/ide/reference/immediate-window.md renamed to docs/ide/immediate-window.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The **Immediate** window supports IntelliSense.
2626

2727
## Display the values of variables
2828

29-
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):
29+
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):
3030

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

4343
> [!TIP]
44-
> 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).
44+
> 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).
4545
4646
## Design-time expression evaluation
4747

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

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

74-
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).
74+
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).
7575

7676
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.
7777

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

125125
## Related content
126126

127-
- [Navigating through code by using the debugger](../../debugger/navigating-through-code-with-the-debugger.md)
128-
- [Command Window](../../ide/reference/command-window.md)
129-
- [Overview of the debugger](../../debugger/debugger-feature-tour.md)
130-
- [Debug at design time](../../debugger/walkthrough-debugging-at-design-time.md)
131-
- [Visual Studio Command Aliases](../../ide/reference/visual-studio-command-aliases.md)
132-
- [Use regular expressions in Visual Studio](../../ide/using-regular-expressions-in-visual-studio.md)
127+
- [Navigating through code by using the debugger](../debugger/navigating-through-code-with-the-debugger.md)
128+
- [Command Window](../ide/reference/command-window.md)
129+
- [Overview of the debugger](../debugger/debugger-feature-tour.md)
130+
- [Debug at design time](../debugger/walkthrough-debugging-at-design-time.md)
131+
- [Visual Studio Command Aliases](../ide/reference/visual-studio-command-aliases.md)
132+
- [Use regular expressions in Visual Studio](../ide/using-regular-expressions-in-visual-studio.md)
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
---
2+
title: Configure indent and tab settings
3+
description: Learn how to use the Tabs page in the All Languages section to change the default behavior of the code editor tabs within Visual Studio.
4+
ms.date: 08/08/2025
5+
ms.topic: reference
6+
f1_keywords:
7+
- VS.ToolsOptionsPages.Text_Editor.All_Languages.Tabs
8+
- VS.ToolsOptionsPages.Text_Editor.Basic.Tabs
9+
- VS.ToolsOptionsPages.Text_Editor.CSharp.Tabs
10+
- VS.ToolsOptionsPages.Text_Editor.C%2FC%2B%2B.Tabs
11+
- VS.ToolsOptionsPages.Text_Editor.CoffeeScript.Tabs
12+
- VS.ToolsOptionsPages.Text_Editor.CSS.Tabs
13+
- VS.ToolsOptionsPages.Text_Editor.Dockerfile.Tabs
14+
- VS.ToolsOptionsPages.Text_Editor.F%2523.Tabs
15+
- VS.ToolsOptionsPages.Text_Editor.HQL.Tabs
16+
- VS.ToolsOptionsPages.Text_Editor.HTML.Tabs
17+
- VS.ToolsOptionsPages.Text_Editor.HTMLX.Tabs
18+
- VS.ToolsOptionsPages.Text_Editor.JavaScript.Tabs
19+
- VS.ToolsOptionsPages.Text_Editor.TypeScript.Tabs
20+
- VS.ToolsOptionsPages.Text_Editor.JSON.Tabs
21+
- VS.ToolsOptionsPages.Text_Editor.LESS.Tabs
22+
- VS.ToolsOptionsPages.Text_Editor.Plain_Text.Tabs
23+
- VS.ToolsOptionsPages.Text_Editor.ResJSON.Tabs
24+
- VS.ToolsOptionsPages.Text_Editor.SCSS.Tabs
25+
- VS.ToolsOptionsPages.Text_Editor.SQL_Server_Tools.Tabs
26+
- VS.ToolsOptionsPages.Text_Editor.StreamAnalytics.Tabs
27+
- VS.ToolsOptionsPages.Text_Editor.T-SQL90.Tabs
28+
- VS.ToolsOptionsPages.Text_Editor.U-SQL.Tabs
29+
- VS.ToolsOptionsPages.Text_Editor.XAML.Tabs
30+
- VS.ToolsOptionsPages.Text_Editor.XML.Tabs
31+
helpviewer_keywords:
32+
- indents, Code Editor
33+
- Code Editor, default behavior
34+
- tabs, setting in Code Editor
35+
- All Languages Text Editor Options dialog box
36+
- editors, Code Editor
37+
- Code Editor, indenting
38+
- Code Editor, tabs
39+
ms.custom: "ide-ref"
40+
author: anandmeg
41+
ms.author: meghaanand
42+
manager: mijacobs
43+
ms.subservice: general-ide
44+
---
45+
# Configure indent and tab settings in Visual Studio
46+
47+
Learn how to change the default tab and indentation behavior for the Code Editor in Visual Studio using the text editor configuration options.
48+
49+
## Access the All Languages Tabs options
50+
51+
1. Open Visual Studio.
52+
2. On the menu bar, select **Tools** > **Options**.
53+
3. In the Options dialog, expand the **Text Editor** node.
54+
4. Expand **All Languages**, then select **Tabs**.
55+
56+
> [!CAUTION]
57+
> Changes made here apply to all development languages. Resetting options in this dialog will override individual language settings. To configure options for a specific language, select its subfolder under **Text Editor**.
58+
59+
## Resolve conflicting settings
60+
61+
If you select different tab or indent settings for individual languages, Visual Studio displays a warning message:
62+
- "The indentation settings for individual text formats conflict with each other," for differing **Indenting** options.
63+
- "The tab settings for individual text formats conflict with each other," for differing **Tab** options.
64+
65+
For example, if **Smart indenting** is set for Visual Basic and **Block indenting** for Visual C++, you’ll see a reminder about the conflict.
66+
67+
## Configure indenting options
68+
69+
In the **Indenting** section, choose one of the following indenting styles:
70+
71+
- **None**: New lines are not indented; the cursor starts at the first column.
72+
- **Block**: New lines are automatically indented to match the previous line.
73+
- **Smart**: New lines are indented based on code context and IntelliSense conventions. Not available for all languages.
74+
75+
For example, lines between braces `{ }` may be indented an extra tab stop.
76+
77+
## Configure tab options
78+
79+
In the **Tabs** section, choose the following options.
80+
81+
- **Tab size**: Sets the number of spaces per tab stop (default: 4).
82+
- **Indent size**: Sets the number of spaces for each indentation (default: 4). Tabs, spaces, or both are used to fill the size.
83+
- **Insert spaces**: Indent operations insert only space characters.
84+
- **Keep tabs**: Indent operations insert as many tab characters as possible; spaces fill any remainder.
85+
86+
## Troubleshooting
87+
88+
> [!TIP]
89+
> Adaptive formatting may override your custom tab settings. To disable adaptive formatting, go to **Text Editor** > **Advanced** and toggle **Use adaptive formatting**. You can also use an [.editorconfig](../ide/create-portable-custom-editor-options.md) file to manage indent styles.
90+
91+
## Next steps
92+
93+
- [Options, Text Editor, All Languages](../ide/reference/options-text-editor-all-languages.md)
94+
- [General, Environment, Options Dialog Box](../ide/reference/general-environment-options-dialog-box.md)

0 commit comments

Comments
 (0)