Wrap lines intelligently (simulating indents)
Like other text editors, Visual Studio has a word wrap feature (Tools / Options / Text Editor / All languages / Word wrap ). However unlike other text editors, Visual Studio's word wrap ignores indents, spilling the line continuation into the margin. This makes the page very messy.
Take a look how other text editors do line wrap (screenshot of Notepad++ attached), respecting indentation, so the line continuation is displayed with the same margin. http://stackoverflow.com/questions/12324453/wrap-lines-intelligently-simulating-indents-in-visual-studio-2012
Another bug with Visual Studio's word wrap is that triple clicking in the editor selects the line on screen rather than the physical line as expected.
ps. A bug with 'User Voice' is that this text area is tiny!
a) Yes, it's definitely RIDICULOUS (*not* "BULL") that every Word Processor and even many if not most Text Editor software since DECADES *before* "2012" have been Word Wrapping with indents, yet one of most used IDE's that's used to develop many of these software doesn't do it.
b) Given that the VS doesn't have an indenting Word Wrap and many IDE's (at least at one time) had no Word Wrap at all, it's also RIDICULOUS that developers were / are too lazy / short-sighted / inconsiderate to *manually* wrap their code. I remember in my 1st dev job (in 1990), almost every dev had 80 col x 25 row monitors *except* for one "'sr.'" dev that had a (drum roll) 132 col x 50 row one. Ooo! And he made sure ever code line used every col and every method used every row (and often many times more). Keep in mind, most mortals can't just read the first X cols of a screen of code, scroll right and read the next X cols. We have to scroll right and back left PER - EVERY - LINE that's too long!?! ARRRRGHHH!!!
George Yong commented
I second this request.
BULL - You get more useful screen estate being used by code.... ITS BEEN THIS WAY SINCE 2012 AND PREVIOUS VERSIONS..... DON'T FORCE THIS INDENTING WITHOUT THERE BEING AN OPTION TO REVERT BACK TO THE OLD STYLE.... PEOPLE LIKE AND ARE USE TO THE OLD STYLE... STOP FORCING YOUR BS ON US!
Needs confiurgable setting. Also a 'Join lines split on the '.' operator refactoring for entire file would be great.
Antonio Carvalho commented
I second this request. XCode has being doing this forever.
This appears to be fixed in Visual Studio 2013! Thanks (at last)!
I need this as well!
If you think "this isn't worth fixing because only a few Visual Studio users use word wrap", consider that "most Visual Studio users don't use word wrap BECAUSE IT'S BROKEN".