burnside
burnside

Reputation: 2561

How to fix resharper line wrapping indents

Resharper seems to have gone berserk and is wrapping lines without an indent, i.e. they are hugging the margin. This uglyness makes me rip my shirt off and go wild.

    else
                {
                    gridView1.SetRowCellValue(gridView1.FocusedRowHandle, "PRIORITY",
polcvgSetCollection.Max(p => p.PRIORITY) + 1);                
                }

See the line popping out of the brace. It's disgusting.

Can anyone help fix this? I've looked through the settings for Resharper->Options->Line Breaks and can't find which one will fix it. Cheers.

Upvotes: 9

Views: 6819

Answers (3)

Jeson Martajaya
Jeson Martajaya

Reputation: 7352

For Resharper 8.2

Resharper > Options > Code Editing > C# > Formatting Style > Line Breaks and Wrapping > uncheck Wrap long lines

Resharper Options Resharper Options

Upvotes: 11

serg10
serg10

Reputation: 32727

Is this possibly Visual Studio's Word Wrap rather than a Resharper setting? Try turning VS's wrapping off with:

Tools - Options - Text Editor - All Languages - Word Wrap

Upvotes: 16

Reputation:

Look at Resharper->Options->C#->Formating Style->Other->Indentation.

This is maybe the option you are looking for.

Upvotes: 7

Related Questions