سؤال

How to make c# code automatic formatted in LinqPad?

I had tried : Ctrl+E, Ctrl+D to format the entire document. Ctrl+E, Ctrl+F to format the selection.

None of them work.

void Main()
{
    var ids = Enumerable.Range(1, 10);
    var ran = new System.Random(10);
    var q = from n in ids           orderby ran.Next() select n;
            q.Dump();
}
هل كانت مفيدة؟

المحلول

LINQPad doesn't support automatic code formatting at present. This feature is in the pipeline.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top