Come impostare Visual Studio 2010 in modo che le funzioni di lambda su più righe non risultino brutte, con tutto lo spazio vuoto a sinistra?Funzioni di lambda di formattazione automatica in Visual Studio 2010
dataView.CellFormatting += (s, e) =>
{
if ((e.ColumnIndex == 1)&&((dataView.SelectedCells.Count == 1)))
{
var scope = Scope.Instance;
var row = dataView.Rows[e.RowIndex];
var variable = row.DataBoundItem as Variable;
if (scope.Variables.Contains(variable))
{
dataView[e.ColumnIndex, e.RowIndex].Style.BackColor =
scope.GetGraph(variable).Color;
}
else
{
dataView[e.ColumnIndex, e.RowIndex].Style.BackColor = Color.White;
}
}
};
non riesco a visualizzare ciò che si sta cercando di dire che forse un frammento di esempio (prima e dopo) aiuterà – BoltClock
ho modificato.. la mia domanda. Questo è ciò che intendo. – Peter17
R #? http://stackoverflow.com/questions/2176429/is-there-a-way-t o-mark-up-code-to-tell-resharper-not-to-format-it – steamer25