R# 7.1.2 formats code comments incorrectly
Hello,
I have the following code.
public abstract class SingleFactory<T> where T : class, new()
{
// ReSharper disable StaticFieldInGenericType
private static readonly Lazy<T> SingleInstance = new Lazy<T>(() => new T());
// ReSharper restore StaticFieldInGenericType
public static T Instance
{
get
{
return SingleInstance.Value;
}
}
}
When I'm using the Cleanup Code option it will format it into this.
// ReSharper disable StaticFieldInGenericType
private static readonly Lazy<T> SingleInstance = new Lazy<T>(() => new T());
// ReSharper restore StaticFieldInGenericType
Is there a way to change it so it won't create the blank line after the field?
Please sign in to leave a comment.
Why it takes ages for you to answer? can't you at least acknowledge it?
Can I get an answer please? I just want to know what's going on.
It looks like rule SA1515 from StyleCop ...
Thank you! I've disabled the rule and is no longer making this blank line. :)