Search
Find and replace in files and across your project
Find in File
Press Cmd+F to open the Find panel in the current file.
Find Options
- Case Sensitive - Match exact case
- Whole Word - Match complete words only
- Regular Expression - Use regex patterns
Navigation
| Action | Shortcut |
|---|---|
| Find Next | Cmd+G |
| Find Previous | Cmd+Shift+G |
| Use Selection for Find | Cmd+E |
| Jump to Selection | Cmd+J |
Find and Replace
Press Cmd+Option+F to open Find and Replace.
Replace Actions
- Replace - Replace current match
- Replace All - Replace all matches in file
- Replace & Find - Replace and move to next
Replacement Patterns
With regex enabled, use capture groups in replacements:
$1,$2, etc. for captured groups$0for the entire match
Project Search
Press Cmd+Shift+F to search across your entire project.
Features
- Search all files in the workspace
- Filter by file type or path
- Preview results in context
- Click to jump to match
Search Filters
Narrow your search with filters:
| Filter | Example | Description |
|---|---|---|
| File pattern | *.ts | Only TypeScript files |
| Path include | src/ | Only files in src directory |
| Path exclude | node_modules | Skip certain directories |
Search Navigator
The Search Navigator in the left sidebar shows:
- Recent searches
- Search results grouped by file
- Match count per file
- Quick navigation to matches
Symbol Search
Press Cmd+Shift+O to search for symbols in the current file:
- Functions and methods
- Classes and types
- Variables and constants
Keyboard Reference
| Action | Shortcut |
|---|---|
| Find in File | Cmd+F |
| Find and Replace | Cmd+Option+F |
| Find in Project | Cmd+Shift+F |
| Find Next | Cmd+G |
| Find Previous | Cmd+Shift+G |
| Use Selection | Cmd+E |
| Go to Symbol | Cmd+Shift+O |