Royi Namir
Royi Namir

Reputation: 148524

Resharper - wrapping long lines with continuation?

I'm using Resharper 8. ( visual studio 2010).

I've enabled "wrap long lines"

enter image description here

Bu when I have long lines it does wrap them but it starts at "X=0" at the next line ( see number "2" : )

https://i.sstatic.net/mfdz3.png enter image description here

Question :

Is there any configuration ( VS || R#) so that when 1 is wrapped , 2 will start under 3 ?

Upvotes: 1

Views: 158

Answers (1)

citizenmatt
citizenmatt

Reputation: 18573

This isn't related to ReSharper. This is how Visual Studio handles wrapping long lines - it's still a single line of text, as you can see by the line number, but it's wrapped to all appear on the screen at once.

If you want to reformat the text, you can simply enter a carriage return, e.g. after the if statement, and the text will then move to a new line and should be indented under your number 3. ReSharper can do this for you with code cleanup (ReSharper -> Tools -> Code cleanup)

Upvotes: 1

Related Questions