26 lines
983 B
Markdown
26 lines
983 B
Markdown
# Search
|
|
|
|
## Find in Files
|
|
|
|
`Ctrl+Shift+F` (Edit > Find in Files): a text or a regular expression, match case, whole words, file masks (`*.php, *.twig`).
|
|
Results go to the **Find** window (`Alt+3`), grouped by file; a click opens the line. `Ctrl+Shift+R` replaces, with a preview of
|
|
each change.
|
|
|
|
## The indexed search
|
|
|
|
The IDE indexes the project's text files in the background. **Search Everywhere > Text** or **Search Text (indexed)…** finds words
|
|
at once, even in big projects:
|
|
|
|
| Query | Finds |
|
|
|---|---|
|
|
| `invoice total` | files with both words, the best first (file names and declarations count more) |
|
|
| `"total amount"` | the phrase |
|
|
| `inv*` | words starting with `inv` |
|
|
| `-test` | without the word |
|
|
| `path:src/Controller` | only under that folder |
|
|
| `ext:twig` | only those files |
|
|
|
|
## Find Usages
|
|
|
|
`Alt+F7` on a class, method, property, function or constant: every use, in the Find window. In YAML, the same for anchors,
|
|
services, parameters ([YAML](yaml.md)).
|