---
title: Write in many places at once
project: TotalEdit
version: Latest
section: guides
language: en
license: 
url: https://totaljs.es/docs/totaledit/latest/guides/many-cursors/
updated: 2026-12-02T15:40:06.047Z
---

# Write in many places at once

> With several cursors, what you type, delete or paste happens at each one. It is the quick way to change the same thing in many places.

## Add the next match

1. Put the cursor on a word, or select a text.
2. Press ⌘D on the Mac, Ctrl+D on Windows and Linux. The first time it selects the word, and then each press adds the next match.
3. Type the new text.

If you added one too many, ⌘U on the Mac, Ctrl+U on Windows and Linux, takes back the last selection.

## Add every match

Select a text and press ⌃⌘G on the Mac, Alt+F3 on Windows and Linux. The command is called **Select every match of the selection**.

## Add a cursor above or below

Press ⌥⌘↑ or ⌥⌘↓ on the Mac, Ctrl+Alt+↑ or Ctrl+Alt+↓ on Windows and Linux. Each press adds one more line.

## Add cursors with the pointer

- Hold ⌘ on the Mac, Ctrl on Windows and Linux, and click where you want another cursor.
- Hold ⌥ on the Mac, Alt on Windows and Linux, and drag: it selects a column, with a cursor in each line.

## One cursor for each line

Select several lines and press ⇧⌘L on the Mac, Ctrl+Shift+L on Windows and Linux. Each line becomes a selection of its own, with its cursor at the end.

> The text of each line is still selected, so typing replaces it. To write at the end of the lines, press → first.

## Back to one cursor

Press Esc. The bar at the bottom says how many cursors there are while there is more than one.

[Insert an identifier](/totaledit/latest/guides/insert/) with several cursors, and each one gets a different value.
