Search
Search finds text across every file in your workspace, as you type, and can replace it everywhere at once. For a result you want to keep open, use a Search Editor tab.
Search here means text search. To open a file by its name, use Quick Open (Cmd+P); see Editor basics. To find code by meaning, symbol or caller, agents use Code Intelligence.
Search the workspace#
- Open Search Click Search in the Activity Bar, or choose Edit ▸ Find in Files (Cmd+Shift+F / Ctrl+Shift+F).
- Type your query Results appear while you type, grouped by file. Every folder of a multi-root workspace is searched.
- Narrow it down Use the toggles in the search box and the include and exclude boxes (see below).
- Open a match Click a result to open the file at that line.
Options#
| Option | What it does |
|---|---|
| Match Case | Only matches with the same upper and lower case. |
| Match Whole Word | Only matches that are whole words. |
| Use Regular Expression | Treats the query as a regular expression. Lookaround and backreferences work. |
| Files to include | Glob patterns to search in, for example *.ts, *.tsx. |
| Files to exclude | Glob patterns to skip, for example node_modules, *.lock. |
Replace across files#
- Show the replace box Click Toggle Replace next to the search box and type the replacement text.
- Replace All Click Replace All. IZ Code asks you to confirm and tells you how many occurrences in how many files will change.
Files that are open in the editor are changed in their tab and stay unsaved, so you can review them and undo. Other files are written to disk directly. When it is done, IZ Code reports Replaced N occurrences in M files, or lists the files it could not change.
Search Editor#
A Search Editor shows search results as a text document in a tab, titled Search: <query>. It is useful when you want to keep a result set next to your code, or come back to it later.
- Open one with Search Editor: New Search Editor from the Command Palette (Cmd+Shift+P).
- Type the query and press Enter, Cmd+Enter (Ctrl+Enter), or click Rerun. Unlike the sidebar, it does not search as you type.
- It has the same options as the sidebar: case, whole word, regular expression, include and exclude.
- The results are listed in the same format VS Code uses, with each match highlighted. Cmd+F searches within the results.
What gets searched#
- Every text file in the workspace folders.
- Binary files are skipped.
- Files larger than 10 MB are skipped.
- A search stops collecting at 5,000 files or 10,000 matches. You then see Too many results — showing a partial set. Narrow the query or add include patterns.
Starting a new query cancels the previous one, so typing fast does not queue up searches.