I have a problem with Resharper 8.
Everytime I declare a property in my code, Resharper completely ruins my code:
class MyClass
{
public int MyProp { get; set; }
}
will be reformatted to:
class MyClass
{
public int MyProp { get; set; }
}
}
And if I declare "small" properties like:
class MyClass
{
public int MyProp { get { return 1; } }
}
it will be reformatted to:
class MyClass
{
public int MyProp
{
get { return 1; }
}
}
Is there a way to fix the first case and is there a way to tell Resharper how long a single-lined property is allowed to be?
If I have very short properties I don't want them to spread over multiple lines.
If it is not fixable how can I tell Resharper to use Visual Studio's formatting in that cases?