---
title: "cut"
description: "The method for cutting text."
type: "function"
---
## API Reference

### cut

> Source set: Common

```kotlin
suspend fun cut()
```

The method for cutting text.

If there is no selection, return. Put the selected text into the `Clipboard`. The new text
should be the text before the selection plus the text after the selection. And the new cursor
offset should be between the text before the selection, and the text after the selection.
