How to say to Rider (Resharper) put #nullable
after using (import) block after code reformat?
My example:
JetBrains Rider 2022.1.2
. I expect the same results with Resharper
because Rider
and Resharper
use the same settings.using System.Collections.Generic;
#nullable enable
internal record Response
{
public IList<decimal>? Items { get; init; }
}
Actual result:
#nullable enable
was moved before using (import) block.#nullable enable
using System.Collections.Generic;
internal record Response
{
public IList<decimal>? Items { get; init; }
}
Expected result:
I played around with both Rider and R# and was not able to produce your desired behavior. So I assume that's not yet supported 😕
Maybe you can create a ticket at JetBrains so that they can track it as a feature request.