开发者

How to Set the Line Length for VS2010 Automatic line break

开发者 https://www.devze.com 2023-04-04 01:39 出处:网络
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 avaiab

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:

How to Set the Line Length for VS2010 Automatic line break


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号