Reputation: 193462
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/
Upvotes: 404
Views: 190743
Reputation: 21
In VS Code === Version: 1.52.1
Open VS Code settings
From the settings find the settings.json
file and open it
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.😄
Upvotes: 2
Reputation: 116240
Following Manage word wrap in the editor:
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 Code:
Upvotes: 771
Reputation: 684
keyboard shortcuts in visual studio
(alt + z) => toggle word wrap
Upvotes: 8
Reputation: 51
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 :
Upvotes: 5
Reputation: 163
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
Upvotes: 4
Reputation: 427
In Visual Studio 2005 Pro:
Ctrl + E, Ctrl + W
Or menu Edit → Advanced → Word Wrap.
Upvotes: 11
Reputation: 5501
Use menu Edit → Advanced → Word Wrap in Visual Studio 2003.
Upvotes: 5
Reputation: 17282
I use this feature often enough that I add a custom button to the command bar.
Upvotes: 31
Reputation: 137492
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
Upvotes: 17
Reputation: 8036
Open the output window.
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.
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.
Upvotes: 8