How to Set the Line Length for VS2010 Automatic line break
Asked Answered
L

1

15

I use a wide screen and like to code in 16:9. So sometimes there is a string.Format... or whatever the is larger than the old 4:3 screen format. But VS does not want to use the avaiable space and just always makes a line break at about 50% of the visible line.

Where can I adjust the automatic line break to the wider screen?

btw I am using ReSharper (5.1).

example:

enter image description here

Loper answered 8/9, 2011 at 15:9 Comment(2)
[URL=imageshack.us/photo/my-images/9/vs2010linebreaks.png/…Loper
Possible duplicate of How to stop Resharper from line breaking after return keyword for long lines?Petrosal
M
28

I think this is ReSharper's doing. In ReSharper | Options | Languages | C# | Formatting style | Line Breaks and Wrapping, under Line wrapping there is an entry Right margin (columns) - adjust this upwards to match the width you want ReSharper to wrap to.

I don't believe VS on its own will reflow text.

Note that there is a VS option to display wrapped text (Edit | Advanced | Word Wrap), but as can be seen from the line numbers when this is turned on, that doesn't actually change the text.

Munday answered 9/9, 2011 at 8:22 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.