Ide.Buffer.format_selection_async

### Method

# Ide Bufferformat_selection_async

#### Declaration

    void
    ide_buffer_format_selection_async (
      IdeBuffer* self,
      IdeFormatterOptions* options,
      GCancellable* cancellable,
      GAsyncReadyCallback callback,
      gpointer user_data
    )

#### Description

Formats the selection using an available `IdeFormatter` for the buffer.

Available since: | 3.32

#### Parameters

`options` | `IdeFormatterOptions`
| Options for the formatting.
| The data is owned by the caller of the function.
`cancellable` | `GCancellable`
| A `GCancellable`, or `NULL`.
| The argument can be `NULL`.
| The data is owned by the caller of the function.
`callback` | `GAsyncReadyCallback`
| The callback upon completion.
| The argument can be `NULL`.
`user_data` | `gpointer`
| User data for `callback`.
| The argument can be `NULL`.
| The data is owned by the caller of the function.