You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ide/reference/how-to-manage-word-wrap-in-the-editor.md
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Toggle word wrap to see long code or line numbers
3
-
description: Enable word wrapping in Visual Studio to display code on multiple lines, or turn the feature off to see line numbers.
4
-
ms.date: 05/31/2024
3
+
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
5
5
ms.topic: how-to
6
6
helpviewer_keywords:
7
7
- word wrap
@@ -16,24 +16,22 @@ ms.subservice: general-ide
16
16
---
17
17
# Manage word wrap in the editor
18
18
19
-
You can set and clear the **Word wrap** option. When this option is set, the portion of a long line that extends beyond the current width of the Code Editor window is displayed on the next line. When this option is cleared, you can scroll to the right to see the ends of long lines. You might turn this option off to facilitate the use of line numbering.
19
+
You can turn the **Word wrap** option on or off. When enabled, long lines that extend beyond the current width of the Code Editor window continue onto the next line. When disabled, you can scroll horizontally to view the rest of long lines. You can turn this option off to use line numbering.
20
20
21
21
## To set word wrap preferences
22
22
23
-
1. On the Visual Studio menu bar, select **Tools** > **Options**.
24
-
25
-
:::image type="content" source="media/vs-2022/tools-options-menu-bar.png" alt-text="Screenshot of the menu bar in Visual Studio with Tools and Options selected." lightbox="media/vs-2022/tools-options-menu-bar.png":::
26
-
23
+
1. Select **Tools** > **Options**.
27
24
1. Select **Text Editor** > **All Languages** > **General** to set this option globally.
28
25
29
26
— or —
30
27
31
-
Select **Text Editor**, select the folder that matches the programming language that you're using. Then select the **General** folder. For example, select **Text Editor** > **C#** > **General**.
32
-
28
+
Select **Text Editor** > Programming language that you're using, for example, **C#** > **General**.
33
29
1. Under **Settings**, select or clear the **Word wrap** option.
34
30
35
31
When you select the **Word wrap** option, the **Show visual glyphs for word wrap** option is enabled.
36
32
33
+
:::image type="content" source="media/vs-2022/word-wrap-setting.png" alt-text="Screenshot of the word wrap option in Text Editor Settings." lightbox="media/vs-2022/word-wrap-setting.png":::
34
+
37
35
> [!NOTE]
38
36
> 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.
0 commit comments