Find in Files
Search all the files in your Odoo project, or a single folder, and preview each match without opening the file. This is useful in Odoo projects, where the Odoo source and your custom addons can hold thousands of files.
Press Ctrl+Shift+F (Cmd+Shift+F on macOS) to open it.

What you can do
- Search the whole project with the In Project tab, or one folder with the Directory tab.
- Filter by file type with a file mask such as
*.py. - Match exactly with case, whole-word and regular-expression toggles.
- Preview a match in context, with its line number, before you open it.
- Edit in the preview. The preview is a real editor, so your changes save like in any other file.
- Keep your results open by pinning them.
- Open a result in the editor with Open in Editor,
Enteror a double-click.
Get started
- Press
Ctrl+Shift+F. If you have text selected in the editor, it is filled in for you. - Type what you want to find. The search runs as you type.
- Choose In Project or Directory. For Directory, select Browse and pick a folder. If a folder is selected in the Explorer when you press
Ctrl+Shift+F, it is filled in for you. - To limit the search to some files, turn on Filter by File Mask and enter a pattern such as
*.py. Select the arrow next to the box to pick a preset. - Use the arrow keys to move through the results. The preview shows the selected match. Press
Enterto open it in the editor.
You can also run Find in Files from the Command Palette.
Search options
The buttons next to the search box change how it matches.
| Button | What it does |
|---|---|
| Cc (Match Case) | Matches upper and lower case exactly. |
| W (Match Whole Word) | Skips partial matches, so order does not match border. |
.* (Use Regular Expression) | Reads the text as a regular expression. |
| Clear | Empties the search box. |
The file mask presets are *.py, *.xml, *.js, *.css, *.scss, *.ts, *.jsx, *.tsx, *.html, *.json, *.md, *.yaml, *.yml, *.txt and *.log. You can also type your own pattern. The window remembers your last search text, file mask and toggles.
Read the results
Each result row shows the matching line with the match highlighted, and the file path and line number. The header shows how many matches were found and in how many files, for example 120 results in 14 files.
| Key | Action |
|---|---|
Up and Down | Move through the results. This works while you are still in the search box. |
PageUp and PageDown | Move a page at a time. |
Home and End | Go to the first or last result when the list has focus. |
Enter or a double-click | Open the selected result in the editor. |
Drag the divider between the results and the preview to resize them. Double-click the divider to collapse the preview, and again to bring it back.
Pin and reuse results
Select the pin icon in the title bar of the search window, or run Pin Search Results, to keep the window open while you work in other files. Select it again to unpin. Select Open in Editor at the bottom right to open the selected result's file in the editor.
Tips and limits
- Find in Files searches the text of your files. It does not search by symbol or class name. To find a file by name, use
Ctrl+P. To jump to a definition, use context-aware suggestions. - The list shows up to 20,000 results by default. When a search reaches the limit, the header says so, for example
(first 20000). To change the limit, change thesearch.maxResultssetting, or clear it to remove the limit. - Narrow a big search with a file mask or the Directory tab. In an Odoo project, search a single addon instead of the whole Odoo source.