﻿---
title: dotnet_separate_import_directive_groups
description: Separate groups of usings by first namespace segment with a blank line. Defaults to `false`
url: https://docs-v3-preview.elastic.dev/reference/usings/dotnet_separate_import_directive_groups
---

# dotnet_separate_import_directive_groups
Separate groups of usings by first namespace segment with a blank line.

## Values


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

**Default:** `false`

### `dotnet_separate_import_directive_groups = true`

```ini
dotnet_separate_import_directive_groups = true
```

<tab-set>
  <tab-item title="Before">
    ```csharp
    using System;
    using System.Collections.Generic;
    using Foo.Bar;
    using Baz.Qux;

    namespace N;

    public class Widget { }
    ```
  </tab-item>

  <tab-item title="After">
    ```csharp
    using System;
    using System.Collections.Generic;
    using Foo.Bar;
    using Baz.Qux;

    namespace N;

    public class Widget { }
    ```
  </tab-item>
</tab-set>


### `dotnet_separate_import_directive_groups = false`

```ini
dotnet_separate_import_directive_groups = false
```

<tab-set>
  <tab-item title="Before">
    ```csharp
    using System;
    using System.Collections.Generic;
    using Foo.Bar;
    using Baz.Qux;

    namespace N;

    public class Widget { }
    ```
  </tab-item>

  <tab-item title="After">
    ```csharp
    using System;
    using System.Collections.Generic;
    using Foo.Bar;
    using Baz.Qux;

    namespace N;

    public class Widget { }
    ```
  </tab-item>
</tab-set>