Paul Fox
Paul Fox

Reputation: 245

Get Resharper Formatting to Match Visual Studio Formatting

I have a legacy system that uses the following settings for indentation for all languages in Visual Studio.

Tab Size: 8 Indent Size: 4 Keep Tabs

When I let Visual Studio format my code, I get the following:

enter image description here

When I let Resharper format the code. I get the following:

enter image description here

I've searched Google, Stack Overflow and have played with tons of options in both Visual Studioand Resharper. I still can't get Resharper formatting to match. Can anyone help? I'd really like to use Resharper formatting/cleanup, but need to figure this out first.

Thanks in advance!

Upvotes: 5

Views: 594

Answers (1)

Dmitry Osinovskiy
Dmitry Osinovskiy

Reputation: 10118

ReSharper doesn't understand when indent size is different from the tab size, because this kind of formatting style has too few benefits, too many drawback and is rarely used. I suggest reformatting everything.

Upvotes: 2

Related Questions