---
title: Find and replace
project: TotalEdit
version: Latest
section: guides
language: en
license: 
url: https://totaljs.es/docs/totaledit/latest/guides/find-and-replace/
updated: 2026-12-02T15:40:06.047Z
---

# Find and replace

> Find a text in the file in front, with or without replacing it, or in every file of the project.

## Find in the file

1. Press ⌘F on the Mac, Ctrl+F on Windows and Linux. A bar opens over the code.
2. Write the text. Each match is marked.
3. Press Enter or **next** for the next one, and **previous** to go back.

Esc closes the bar. With it closed, F3 goes to the next match and Shift+F3 to the previous one. On the Mac, ⌘G and ⇧⌘G do it too.

Three boxes change how it looks for the text:

| Box | What it does |
| --- | --- |
| **match case** | Tells capital letters from small ones |
| **regexp** | Reads the text as a regular expression |
| **by word** | Finds whole words only |

**all** selects every match, with [a cursor](/totaledit/latest/guides/many-cursors/) in each one.

## Replace in the file

In the same bar, write the new text in **Replace**:

- **replace** changes the match that is selected and goes to the next.
- **replace all** changes them all. Undo takes it back in one step.

With **regexp**, `$1` is the first group of the expression, `$2` the second, and `$&` the whole match.

## Find in the project

1. Press ⇧⌘F on the Mac, Ctrl+Shift+F on Windows and Linux. **Find** opens on the left. If you have some text selected, it is already written.
2. Press Enter.
3. Press a line to go to it.

The buttons under the field are **Match case**, **Whole words** and **Regular expression**. While it looks, the button **Stop finding** stops it.

![The lines of a project where a word is, grouped by file](https://totaljs.es/_totaldesktop/shots/totaledit-2.webp)

The lines are grouped by file. It shows 2,000 at most, and a plus after the number says that there are more: write a longer text to find fewer.

## What it finds in the project

- It looks in the files on the disk. What you have not saved is not there yet.
- It leaves out `.git`, `node_modules`, what your `.gitignore` files leave out, and files that are not text.
- It only finds: there is no replacing in the whole project.

In [a folder on a server](/totaledit/latest/guides/servers/) it looks in fewer files.
