visual-studioword-wrap

How can I toggle word wrap in Visual Studio?


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/


Solution

  • Following Manage word wrap in the editor:

    Known issues

    Unfortunately word wrap in Visual Studio looks much worse than other editors such as Visual Studio Code -- the margins are inconsistent. This is bug https://developercommunity.visualstudio.com/t/Unexpected-and-sporadic-indents-when-usi/10635809

    Word wrap in Visual Studio 2022:

    word wrap in Visual Studio

    Word wrap in Visual Studio Code:

    enter image description here