﻿---
title: csharp_wrap_parameters_style
description: chop_always gives every parameter its own line regardless of width; wrap_if_long packs parameters instead. wrap_if_long is only honoured in deterministic mode (max_line_length set) — chop_always and chop_if_long work in either. Defaults to `chop_if_long`
url: https://docs-v3-preview.elastic.dev/reference/wrapping/csharp_wrap_parameters_style
---

# csharp_wrap_parameters_style
chop_always gives every parameter its own line regardless of width; wrap_if_long packs parameters instead. wrap_if_long is only honoured in deterministic mode (max_line_length set) — chop_always and chop_if_long work in either.

## Values


| Value          | Notes |
|----------------|-------|
| `chop_always`  |       |
| `chop_if_long` |       |
| `wrap_if_long` |       |

**Default:** `chop_if_long`

### `csharp_wrap_parameters_style = chop_always`

```ini
csharp_wrap_parameters_style = chop_always
```

<tab-set>
  <tab-item title="Before">
    ```csharp
    namespace N;

    public class Widget
    {
        public void Register(string name, int value, bool active, string tag)
        {
            Console.WriteLine(name);
        }
    }
    ```
  </tab-item>

  <tab-item title="After">
    ```csharp
    namespace N;

    public class Widget
    {
        public void Register(
            string name,
            int value,
            bool active,
            string tag
        )
        {
            Console.WriteLine(name);
        }
    }
    ```
  </tab-item>
</tab-set>


### `csharp_wrap_parameters_style = chop_if_long`

```ini
csharp_wrap_parameters_style = chop_if_long
```

<tab-set>
  <tab-item title="Before">
    ```csharp
    namespace N;

    public class Widget
    {
        public void Register(string name, int value, bool active, string tag)
        {
            Console.WriteLine(name);
        }
    }
    ```
  </tab-item>

  <tab-item title="After">
    ```csharp
    namespace N;

    public class Widget
    {
        public void Register(
            string name,
            int value,
            bool active,
            string tag
        )
        {
            Console.WriteLine(name);
        }
    }
    ```
  </tab-item>
</tab-set>


### `csharp_wrap_parameters_style = wrap_if_long`

```ini
csharp_wrap_parameters_style = wrap_if_long
```

<tab-set>
  <tab-item title="Before">
    ```csharp
    namespace N;

    public class Widget
    {
        public void Register(string name, int value, bool active, string tag)
        {
            Console.WriteLine(name);
        }
    }
    ```
  </tab-item>

  <tab-item title="After">
    ```csharp
    namespace N;

    public class Widget
    {
        public void Register(
            string name, int value,
            bool active, string tag
        )
        {
            Console.WriteLine(name);
        }
    }
    ```
  </tab-item>
</tab-set>