﻿---
title: dotnet_sort_system_directives_first
description: Put System.* usings before all others. Defaults to `false`
url: https://docs-v3-preview.elastic.dev/reference/usings/dotnet_sort_system_directives_first
---

# dotnet_sort_system_directives_first
Put System.* usings before all others.

## Values


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

**Default:** `false`

### `dotnet_sort_system_directives_first = true`

```ini
dotnet_sort_system_directives_first = true
```

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

    namespace N;

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

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

    namespace N;

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


### `dotnet_sort_system_directives_first = false`

```ini
dotnet_sort_system_directives_first = false
```

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

    namespace N;

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

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

    namespace N;

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