-->
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, for example, to facilitate the use of line numbering, you can scroll to the right to see the ends of long lines.

Note
To set word wrap preferences. On the Tools menu, select Options. In the Text Editor folder, choose the General options in the All Languages subfolder to set this option globally. Choose the General options in the subfolder for the language in which you are programming. Under Settings, select or clear the Word wrap option. Enable or disable text wrapping for a text box, rich text box, or expression box. Right-click the control for which you want to enable or disable text wrapping, and then click Control Properties on the shortcut menu. Click the Display tab. Select or clear the Wrap text check box.
By default, Word sets text wrapping to In line with text when you insert or paste a new picture into a document. In line with text may not be what you prefer, so here's how to change the default. Go to File Options Advanced. In the Cut, copy, and paste section, change the setting under Insert/paste pictures as: to the text wrapping style.
Wrap Text On Microsoft Word
This topic applies to Visual Studio on Windows. For Visual Studio for Mac, see Source editor: Word wrap.
:max_bytes(150000):strip_icc()/capture-5c172d2546e0fb0001c8f4d8.jpg)
To wrap text around an image: Select the image you want to wrap text around. The Format tab will appear on the right side of the Ribbon. On the Format tab, click the Wrap Text command in the Arrange group. Then select the desired text wrapping option. Feb 22, 2021 Microsoft Word's automatic word wrap is convenient but sometimes unwanted. Here are two ways to keep text from breaking at the end of a line. Image: zefart, Getty Images/iStockphoto.

Wrap Text In Microsoft Word
To set word wrap preferences
On the Tools menu, select Options.
In the Text Editor folder, choose the General options in the All Languages subfolder to set this option globally.
— or —
Choose the General options in the subfolder for the language in which you are programming.
Under Settings, select or clear the Word wrap option.
When the Word wrap option is selected, the Show visual glyphs for word wrap option is enabled.
Select the Show visual glyphs for Word Wrap option if you prefer to display a return-arrow indicator where a long line wraps onto a second line. Clear this option if you prefer not to display indicator arrows.
Note
These reminder arrows are not added to your code; they are for display purposes only.
Known issues
If you're familiar with word wrap in Notepad++, Sublime Text, or Visual Studio Code, be aware of the following issues where Visual Studio behaves differently to other editors: