如何設置Visual Studio 2010,以便多行lambda函數不會看起來很醜陋,左邊所有空白空間?自動格式化Visual Studio 2010中的lambda函數
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;
}
}
};
我不能想像你想說的也許一個例子片斷(前,後)將有助於什麼 – BoltClock
我編輯後回車。我的問題。這就是我的意思。 – Peter17
R#?http://stackoverflow.com/questions/2176429/is-there-a-wayt o-mark-up-code-tell-res-resharper-not-to-format-it – steamer25