How can I toggle word wrap in Visual Studio?

Visual StudioWord Wrap

Visual Studio Problem Overview


Does Visual Studio .NET have a way to toggle word-wrap on and off?

I am used to this feature in Eclipse which allows you to right click and toggle word wrap on and off so that when you have long lines that extend out to the right, you don't have to move the bottom scroll bar right and left to read your code/html: http://web.archive.org/web/20131027224437/http://ahtik.com:80/blog/2006/06/18/first-alpha-of-eclipse-word-wrap-released/

Visual Studio Solutions


Solution 1 - Visual Studio

Following https://docs.microsoft.com/en-gb/visualstudio/ide/reference/how-to-manage-word-wrap-in-the-editor

When viewing a document: Edit / Advanced / Word Wrap (Ctrl+E, Ctrl+W)

General settings: Tools / Options / Text Editor / All Languages / Word wrap

Or search for 'word wrap' in the Quick Launch box.


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: > > > 1. Triple click doesn't select whole line > 2. Cut command doesn't delete whole line > 3. Pressing End key twice does not move cursor to end of line

Unfortunately these bugs have been closed "lower priority". If you'd like these bugs fixed, please vote for the feature request Fix known issues with word wrap.

Solution 2 - Visual Studio

I use this feature often enough that I add a custom button to the command bar.

  1. Click on the Add or Remove Buttons -> Customize
  2. Click on the Commands tab
  3. Click Add Command...
  4. Select Edit (or Edit|Advanced for newer VS versions) from the list
  5. Find Toggle Word Wrap and drag it onto your bar

Solution 3 - Visual Studio

As of Visual Studio 2013, the word wrap feature is finally usable—it respects indentation. There's still a couple of issues (line highlighting, selection), but it's worth using. Here's how

enter image description here

Solution 4 - Visual Studio

In Visual Studio 2005 Pro:

Ctrl + E, Ctrl + W

Or menu EditAdvancedWord Wrap.

Solution 5 - Visual Studio

  1. Open the output window.

  2. Look for the little icon on the very right-hand side of the toolbar that starts with the text "Show output from:" in it. It looks like a small window with a carriage return icon. When you hover over it Visual Studio should display "Toggle Word Wrap" near your mouse pointer.

  3. Click that icon.

You now have learned something that was so painfully obvious I feel embarrassed for not knowing this long ago and thus have chosen to pay my dues and share my answer with others so they don't suffer the same agony I have.

Seriously, this is really useful for those with small screens. I have a small Lilliput USB monitor that is good for small tool windows, Skype IM, etc. It works great for putting the output window on, except that it sucks having to always sideways scroll. After just putting up with sideways scroll for months I finally decided to see if I could make it word wrap. The answer was so easy but the amount of time/effort it saves is tremendous.

Solution 6 - Visual Studio

In Visual Studio 2008, CTRL+E+W.

Solution 7 - Visual Studio

keyboard shortcuts in visual studio

(alt + z) => toggle word wrap

Solution 8 - Visual Studio

In Visual Studio 2008 it is Ctrl + E + W.

Solution 9 - Visual Studio

Use menu EditAdvancedWord Wrap in Visual Studio 2003.

Solution 10 - Visual Studio

For Visual Studio 2017 do the following:

Tools > Options > All Languages, then check or uncheck the checkbox based on your preference. As you can see in below image :

https://i.stack.imgur.com/fOK9Z.png">

Solution 11 - Visual Studio

In latest version.

1.click the left bottom of the icon setting

2.select setting setting

3.select "text editor"> "word wrap" on word wrap

Solution 12 - Visual Studio

In VS Code === Version: 1.52.1

  1. Open VS Code settings

  2. From the settings find the settings.json file and open it

  3. add this code - "editor.accessibilitySupport": "off"

If you already added "editor.accessibilitySupport" with the value "on" before then simply turn it to "off". This is the code worked for me when I faced the same problem while working with one of my JS Project.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionEdward TanguayView Question on Stackoverflow
Solution 1 - Visual StudioMicahView Answer on Stackoverflow
Solution 2 - Visual StudioTodd SmithView Answer on Stackoverflow
Solution 3 - Visual StudioColonel PanicView Answer on Stackoverflow
Solution 4 - Visual StudioAlarionView Answer on Stackoverflow
Solution 5 - Visual StudiogonzobrainsView Answer on Stackoverflow
Solution 6 - Visual StudioZachary YoungView Answer on Stackoverflow
Solution 7 - Visual StudioHimabinduView Answer on Stackoverflow
Solution 8 - Visual StudionetadictosView Answer on Stackoverflow
Solution 9 - Visual StudioIan JacobsView Answer on Stackoverflow
Solution 10 - Visual StudioJudel5View Answer on Stackoverflow
Solution 11 - Visual StudioYvonne.DView Answer on Stackoverflow
Solution 12 - Visual StudioAbhishek SahaView Answer on Stackoverflow