Loading

csharp_new_line_between_query_expression_clauses

Put each clause of a query expression on its own line.

Value Notes
true
false

Default: false

csharp_new_line_between_query_expression_clauses = true
		
using System.Collections.Generic;
using System.Linq;

namespace N;

public class Widget
{
    public IEnumerable<int> Even(List<int> nums)
    {
        return from n in nums where n % 2 == 0 orderby n select n;
    }
}
		
using System.Collections.Generic;
using System.Linq;

namespace N;

public class Widget
{
    public IEnumerable<int> Even(List<int> nums)
    {
        return from n in nums
               where n % 2 == 0
               orderby n
               select n;
    }
}
		
csharp_new_line_between_query_expression_clauses = false
		
using System.Collections.Generic;
using System.Linq;

namespace N;

public class Widget
{
    public IEnumerable<int> Even(List<int> nums)
    {
        return from n in nums where n % 2 == 0 orderby n select n;
    }
}
		
using System.Collections.Generic;
using System.Linq;

namespace N;

public class Widget
{
    public IEnumerable<int> Even(List<int> nums)
    {
        return from n in nums where n % 2 == 0 orderby n select n;
    }
}