I press Ctrl+Shift+L
in JetBrains Rider, which opens a dialog window. I select Whole Solution
, and it starts cleaning up the code. However, I want it to stop transforming this:
public Task<PackageTest?> GetByPackageAndTestIdAsync(Guid packageId, Guid testId) =>
_context.PackageTests.FirstOrDefaultAsync(p => p.TestId == testId && p.PackageId == packageId);
into this:
public Task<PackageTest?> GetByPackageAndTestIdAsync(Guid packageId, Guid testId)
{
return _context.PackageTests.FirstOrDefaultAsync(p => p.TestId == testId && p.PackageId == packageId);
}
Try turning off "Apply code body style (expression body vs block body)".