Skip to content

Commit b61bfdd

Browse files
Merge pull request #14136 from anandmeg/word-wrap
Add word wrap indentation feature
2 parents 68b83ef + f893494 commit b61bfdd

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/ide/reference/how-to-manage-word-wrap-in-the-editor.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Toggle word wrap to see long code or line numbers
33
description: Enable word wrapping to display code on multiple lines, or turn the feature off to see line numbers.
4-
ms.date: 06/27/2025
4+
ms.date: 07/28/2025
55
ms.topic: how-to
66
helpviewer_keywords:
77
- word wrap
@@ -35,6 +35,18 @@ You can turn the **Word wrap** option on or off. When enabled, long lines that e
3535
> [!NOTE]
3636
> The **Show visual glyphs for Word Wrap** option displays a return-arrow indicator where a long line wraps onto a second line. These reminder arrows are not added to your code. They are for display purposes only.
3737
38+
## To indent word wrap
39+
40+
Starting with Visual Studio 17.13, you can choose whether wrapped lines in the editor should be indented.
41+
42+
To change word wrap indentation:
43+
44+
1. Go to **Tools > Options > Text Editor > General**.
45+
1. Under **Display**, select or clear the **Automatically indent when word wrap is enabled** option.
46+
47+
By default, word wrap indentation is enabled. If you prefer your wrapped lines not be indented, simply uncheck this option.
48+
Use this setting to help improve readability and maintain the desired formatting of your code.
49+
3850
## Known issues
3951

4052
If you're familiar with word wrap in Notepad++, Sublime Text, or Visual Studio Code (VS Code), be aware of the following issues where Visual Studio behaves differently to other editors:

0 commit comments

Comments
 (0)