Frage

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();
}
War es hilfreich?

Lösung

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top