How to setup automatic Word Wrap in the Visual Studio Editor ?

In Visual Studio Code editor you can set the  Word wrap option which will automatically adjust long line of code in multiple lines based on the editor view area. This simple settings can be done from Visual Studio Tools > Options area. When this option is selected, based on the current editor width, if the portion of a long line extends then the extended code will automatically come on the next line. By default this option is not selected, on that case you need to scroll the code editor to view the complete code block.

To Setup in Visual Studio, Navigate Tools > Options > All Languages . Now in right side, “Settings” > Select Word Wrap.

image

Above setting will apply the word wrapping for all the languages. If you want to set up for your favorites code editor. You can do it for language specific editor as well.

image

Now, you have must noticed that, Along with Word Wrap, there is an another check box  “Show Visual Glyphs for word wrap” . What does it means ? Well you can unchecked that as well. But the benefit of that selection is, you will get an icon highlight  with return-arrow indicator where a long line wraps onto a second line.

image

Abhijit Jana

Abhijit runs the Daily .NET Tips. He started this site with a vision to have a single knowledge base of .NET tips and tricks and share post that can quickly help any developers . He is a Former Microsoft ASP.NET MVP, CodeProject MVP, Mentor, Speaker, Author, Technology Evangelist and presently working as a .NET Consultant. He blogs at http://abhijitjana.net , you can follow him @AbhijitJana . He is the author of book Kinect for Windows SDK Programming Guide.

One Comment to “How to setup automatic Word Wrap in the Visual Studio Editor ?”

Comments are closed.