Resharper indentation
Asked Answered
M

2

5

How do I change the basic Resharper indentation options? I have noticed that Resharper's indentation settings differ from VS 2010's--VS uses four spaces for an indent, and it's hard to tell what Resharper uses--but the left margins on my code are jagged.

I'd like to reset Resharper to use the same settings as VS 2010, but I can't find the options.

Where can these be found?

Monopetalous answered 24/9, 2010 at 21:46 Comment(0)
M
5

Okay--I figured this one out: Resharper uses the Visual Studio tab settings when reformatting, so the inconsistency I am getting must have another source.

Monopetalous answered 27/9, 2010 at 17:57 Comment(0)
T
4

Open ReSharper > Options > [Your language] > Formatting style > Other and try playing with options in sections called "Indentation" and "Other"

Temperate answered 25/9, 2010 at 9:28 Comment(2)
Thanks, but that simply sets the number of tab characters to insert.Monopetalous
This property page has a very useful setting "Indentation / Continuous line indent multiplier", which is exactly what I was looking for. I set this to 2 so that my line continuations are easily distinguishable from indentation for control flow, etc..Jari

© 2022 - 2024 — McMap. All rights reserved.