Is it possible to change the way that Resharper formats properties?
I don't like:
public string Foo
{
get
{
return bar;
}
set
{
bar = value;
}
}
I like:
public string Foo
{
get { return bar; }
set { bar = value; }
}
You sure can, just go to Resharper > Options > Languages > C# > Formatting Style and tick "place simple property/indexer/event declaration on a single line"
Updated for Resharper 8.2: Resharper > Options > Code Editing > C# > Formatting Style > Line Breaks and Wrapping > Other > Place simple property/indexer/event declaration on single line
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With