How to say to Rider (Resharper) put #nullable
after using (import) block after code reformat?
My example:
- Preconditions:
JetBrains Rider 2022.1.2
. I expect the same results withResharper
becauseRider
andResharper
use the same settings.- File with content:
using System.Collections.Generic;
#nullable enable
internal record Response
{
public IList<decimal>? Items { get; init; }
}
- Steps:
- Choose the file in solution explorer
- Context menu -> Refactor this -> Move to folder
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:
- File content did not change.