Searching within a project
Search and replace within the current file
This feature lets you find and replace text within an editable file displayed in the editor. This feature is not available for read-only files such as:
text files uploaded from an external URL, including files stored on Google Drive, and
.bibfiles (reference libraries) imported from ReadCube, Mendeley, or Zoterotext files that exceed 2 MB in size because the editor treats them as read-only
How to access search and replace
To access search and replace, you can use a keyboard shortcut when your cursor is in the editor (Windows/Linux: Ctrl+F; macOS: ⌘+F), or select Search file located above the editor. Either method displays a search panel located at the bottom of the editor.


How to use search or search and replace
Overleaf will start to search as you type and highlight the first successful result. If you wish, you can configure your search by selecting one or more of the following options within the "Search for" field:
Aa: Match case
[.*]: Regular expression
W: Whole word
: Within selection
Use the up and down arrows to go to the previous or next search result, respectively.


To replace the text of search results, enter the replacement text in the "Replace with" field and use one of the following methods:
Replace updates an individual match and then highlights the next match.
Replace All replaces all matches at once in the selected file.
Project-wide search
The project-wide search feature allows you to search for text across all files in your project. To access project-wide search, select Project search in the left sidebar:


How to use project-wide search
You can configure your search by selecting one or more of the following options, or proceed to search without selecting any.
Aa: Match case
[.*]: Regular expression
W: Whole word
Type your search term in the "Search all project files..." field, and select Search. Any search results are listed and grouped by file. Select a search result to jump to the corresponding file location.
Files larger than 2 MB are excluded from project-wide search results.
Last updated
Was this helpful?