# Modern text editing overview

> Unlike other terminals, Warp’s input editor operates out of the box like a modern IDE and the text editors we’re used to.

- 网址：https://funcoding.ai/agents/warp/terminal/editor/
- 来源：Warp 官方文档原文（英文），MIT 许可，同步于 2026-10-11
- 官方原文：https://docs.warp.dev/terminal/editor/

---
Warp's input editor works like a modern IDE text editor, with cursor movement, click-to-place, multi-line editing, copy-paste, word selection, and soft wrapping built in. Unlike traditional terminals, you can edit commands the same way you edit code — no memorizing shell-specific shortcuts required.

<div class="callout callout-note">

Text Editor Input also works for [SSH sessions](https://funcoding.ai/agents/warp/terminal/warpify/ssh/).

</div>

### Soft wrapping

Warp supports soft wrapping in the input editor. If an autosuggestion goes off-screen, the input editor will be horizontally scrollable to make it visible. Some operations treat soft-wrapped lines like a logical line (`TRIPLE-CLICK`) while other operations treat soft wrapped lines like visible different lines (`↑`/`↓`, `Shift+↑`/`Shift+↓`).

### Copy on select

Warp supports copy on select for selectable text within [Blocks](https://funcoding.ai/agents/warp/terminal/blocks/).

* Toggle this feature in **Settings** > **Features** > **Terminal** or search for "Copy on select" in the [Command Palette](https://funcoding.ai/agents/warp/terminal/command-palette/).

### Autocomplete quotes, parentheses, and brackets

Warp can automatically complete quotes, brackets, and parentheses like you're used to in IDEs.

* Toggle this feature in **Settings** > **Features** > **Text Editing** or search for "Autocomplete quotes" in the [Command Palette](https://funcoding.ai/agents/warp/terminal/command-palette/).

## How to use it

**macOS**

<table><thead><tr><th width="317">Keyboard binding</th><th>Shortcut description</th></tr></thead><tbody><tr><td><code>Escape</code></td><td>Closes the input suggestions or history menu</td></tr><tr><td><code>Ctrl+L</code></td><td>Clears the terminal</td></tr><tr><td><code>Ctrl+H</code></td><td>Backspace</td></tr><tr><td><code>Ctrl+C</code></td><td>Clear the entire editor buffer</td></tr><tr><td><code>Ctrl+U</code></td><td>Copy and Clear the current line</td></tr><tr><td><code>⌘+Shift+K</code></td><td>Clear selected lines</td></tr><tr><td><code>⌘+C</code>, <code>⌘+X</code>, <code>⌘+V</code></td><td>Copy, cut, paste</td></tr><tr><td><code>Ctrl+W</code> / <code>Option+D</code></td><td>Cut the word to the left / right of the cursor</td></tr><tr><td><code>Option+Backspace</code> / <code>Option+Delete</code></td><td>Delete the word to the left / right of the cursor</td></tr><tr><td><code>Ctrl+K</code></td><td>Cut everything to the right of the cursor (copies it to the clipboard)</td></tr><tr><td><code>⌘+Delete</code></td><td>Delete everything to the right of the cursor (does not affect the clipboard)</td></tr><tr><td><code>Option+←</code> / <code>Option+→</code></td><td>Move to the beginning of the previous / next word</td></tr><tr><td><code>Ctrl+Option+←</code> / <code>Ctrl+Option+→</code></td><td>Move backward / forward by one subword</td></tr><tr><td><code>⌘+←</code> / <code>Ctrl+A</code> / <code>Ctrl+E</code> / <code>⌘+→</code></td><td>Move the cursor to the start / end of the line</td></tr><tr><td><code>Shift+←</code> / <code>Shift+→</code></td><td>Select the character to the left / right of the cursor</td></tr><tr><td><code>Option+Shift+←</code> / <code>Option+Shift+→</code></td><td>Select the word to the left / right of the cursor</td></tr><tr><td><code>⌘+Shift+←</code> / <code>⌘+Shift+→</code></td><td>Select to the start / end of the line</td></tr><tr><td><code>Shift+↑</code> / <code>Shift+↓</code></td><td>Select everything above / below the cursor</td></tr><tr><td><code>⌘+A</code></td><td>Select the entire editor buffer</td></tr><tr><td><code>Shift+Enter</code> <code>Ctrl+Enter</code> <code>Option+Enter</code></td><td>Insert newline</td></tr><tr><td><code>Ctrl+R</code></td><td>Command Search</td></tr><tr><td><code>⌘+D</code></td><td>Split pane</td></tr></tbody></table>

**Windows**

<table><thead><tr><th width="317">Keyboard binding</th><th>Shortcut description</th></tr></thead><tbody><tr><td><code>Escape</code></td><td>Closes the input suggestions or history menu</td></tr><tr><td><code>Ctrl+L</code></td><td>Clears the terminal</td></tr><tr><td><code>Ctrl+H</code></td><td>Backspace</td></tr><tr><td><code>Ctrl+C</code></td><td>Clear the entire editor buffer</td></tr><tr><td><code>Ctrl+U</code></td><td>Copy and Clear the current line</td></tr><tr><td><code>Ctrl+C</code>, <code>Ctrl+X</code>, <code>Ctrl+V</code></td><td>Copy, cut, paste</td></tr><tr><td><code>Ctrl+W</code> / <code>Alt+D</code></td><td>Cut the word to the left / right of the cursor</td></tr><tr><td><code>Ctrl+Backspace</code> / <code>Ctrl+Delete</code></td><td>Delete the word to the left / right of the cursor</td></tr><tr><td><code>Ctrl+K</code></td><td>Cut everything to the right of the cursor (copies it to the clipboard)</td></tr><tr><td><code>Ctrl+←</code> / <code>Ctrl+→</code></td><td>Move to the beginning of the previous / next word</td></tr><tr><td><code>Home</code> / <code>End</code></td><td>Move the cursor to the start / end of the line</td></tr><tr><td><code>Shift+←</code> / <code>Shift+→</code></td><td>Select the character to the left / right of the cursor</td></tr><tr><td><code>Meta+Shift+B</code> / <code>Meta+Shift+F</code></td><td>Select the word to the left / right of the cursor</td></tr><tr><td><code>Shift+Home</code> / <code>Shift+End</code></td><td>Select to the start / end of the line</td></tr><tr><td><code>Shift+↑</code> / <code>Shift+↓</code></td><td>Select everything above / below the cursor</td></tr><tr><td><code>Ctrl+A</code></td><td>Select the entire editor buffer</td></tr><tr><td><code>Shift+Enter</code> <code>Ctrl+Enter</code> <code>Alt+Enter</code></td><td>Insert newline</td></tr><tr><td><code>Ctrl+R</code></td><td>Command Search</td></tr><tr><td><code>Ctrl+Shift+D</code></td><td>Split pane</td></tr></tbody></table>

**Linux**

<table><thead><tr><th width="317">Keyboard binding</th><th>Shortcut description</th></tr></thead><tbody><tr><td><code>Escape</code></td><td>Closes the input suggestions or history menu</td></tr><tr><td><code>Ctrl+L</code></td><td>Clears the terminal</td></tr><tr><td><code>Ctrl+H</code></td><td>Backspace</td></tr><tr><td><code>Ctrl+C</code></td><td>Clear the entire editor buffer</td></tr><tr><td><code>Ctrl+U</code></td><td>Copy and Clear the current line</td></tr><tr><td><code>Ctrl+C</code>, <code>Ctrl+X</code>, <code>Ctrl+V</code></td><td>Copy, cut, paste</td></tr><tr><td><code>Ctrl+W</code> / <code>Alt+D</code></td><td>Cut the word to the left / right of the cursor</td></tr><tr><td><code>Ctrl+Backspace</code> / <code>Ctrl+Delete</code></td><td>Delete the word to the left / right of the cursor</td></tr><tr><td><code>Ctrl+K</code></td><td>Cut everything to the right of the cursor (copies it to the clipboard)</td></tr><tr><td><code>Ctrl+←</code> / <code>Ctrl+→</code></td><td>Move to the beginning of the previous / next word</td></tr><tr><td><code>Home</code> / <code>End</code></td><td>Move the cursor to the start / end of the line</td></tr><tr><td><code>Shift+←</code> / <code>Shift+→</code></td><td>Select the character to the left / right of the cursor</td></tr><tr><td><code>Meta+Shift+B</code> / <code>Meta+Shift+F</code></td><td>Select the word to the left / right of the cursor</td></tr><tr><td><code>Shift+Home</code> / <code>Shift+End</code></td><td>Select to the start / end of the line</td></tr><tr><td><code>Shift+↑</code> / <code>Shift+↓</code></td><td>Select everything above / below the cursor</td></tr><tr><td><code>Ctrl+A</code></td><td>Select the entire editor buffer</td></tr><tr><td><code>Shift+Enter</code> <code>Ctrl+Enter</code> <code>Alt+Enter</code></td><td>Insert newline</td></tr><tr><td><code>Ctrl+R</code></td><td>Command Search</td></tr><tr><td><code>Ctrl+Shift+D</code></td><td>Split pane</td></tr></tbody></table>

## How it works

<figure>
![soft wrapping text in Warp input editor](https://funcoding.ai/official-assets/warp/src/assets/terminal/soft-wrapping.webp)
<figcaption>Soft wrapping applied to long lines in the editor.</figcaption>
</figure>
