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

ActionShortcut
Find NextCmd+G
Find PreviousCmd+Shift+G
Use Selection for FindCmd+E
Jump to SelectionCmd+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
  • $0 for 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:

FilterExampleDescription
File pattern*.tsOnly TypeScript files
Path includesrc/Only files in src directory
Path excludenode_modulesSkip 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

ActionShortcut
Find in FileCmd+F
Find and ReplaceCmd+Option+F
Find in ProjectCmd+Shift+F
Find NextCmd+G
Find PreviousCmd+Shift+G
Use SelectionCmd+E
Go to SymbolCmd+Shift+O