Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 451
Paul Fox Avatar asked Nov 04 '22 00:11

Paul Fox


1 Answers

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.

like image 190
Dmitry Osinovskiy Avatar answered Nov 13 '22 23:11

Dmitry Osinovskiy