An old code formatting (probably done by Resharper) has turned to code like this:
private static readonly DataLoadOptions loadVibItemsForPatientQueryOptions = (new Func<DataLoadOptions>(() => {
var
ret
=
new DataLoadOptions
();
ret
.
LoadWith
<
PrescriptionEntity
>
(pe
=>
pe
.
TreatmentEntity);
It is rather to the right due to the block being part of the function being defined at the end of the top line being at the end of the width limit. Maybe I could improve this on the settings for Resharper code formatting (or VS).
But if I move manually the code to the left, is there an automatic way to re-format the line-broken code to look something like this:
private static readonly DataLoadOptions loadVibItemsForPatientQueryOptions = (new Func<DataLoadOptions>(() =>
{
var ret = new DataLoadOptions();
ret.LoadWith<PrescriptionEntity>(pe => pe.TreatmentEntity);