﻿---
title: csharp_new_line_between_query_expression_clauses
description: Put each clause of a query expression on its own line. Defaults to `false`
url: https://docs-v3-preview.elastic.dev/reference/new-lines/csharp_new_line_between_query_expression_clauses
---

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

## Values


| Value   | Notes |
|---------|-------|
| `true`  |       |
| `false` |       |

**Default:** `false`

### `csharp_new_line_between_query_expression_clauses = true`

```ini
csharp_new_line_between_query_expression_clauses = true
```

<tab-set>
  <tab-item title="Before">
    ```csharp
    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;
        }
    }
    ```
  </tab-item>

  <tab-item title="After">
    ```csharp
    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;
        }
    }
    ```
  </tab-item>
</tab-set>


### `csharp_new_line_between_query_expression_clauses = false`

```ini
csharp_new_line_between_query_expression_clauses = false
```

<tab-set>
  <tab-item title="Before">
    ```csharp
    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;
        }
    }
    ```
  </tab-item>

  <tab-item title="After">
    ```csharp
    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;
        }
    }
    ```
  </tab-item>
</tab-set>