Quick Search
The fastest way to search in the current buffer:Open search
Ctrl+F to open the search toolbar at the bottom of the screenEnter search term
Navigate matches
F3 to jump to the next match, or Shift+F3 for the previous matchClose search
Esc to close the search promptSearch and Replace
Replace text in the current buffer:Open replace
Ctrl+R to open the replace toolbarEnter search and replacement
Replace
Search Options
The search toolbar includes toggle buttons for fine-tuning your search:Case Sensitive
foo matches Foo, FOO, and foo.Whole Word
cat won’t match category or scat.Regex
Regular Expressions
Enable regex mode for powerful pattern matching:Basic Regex Patterns
Capture Groups and Replacement
When regex mode is enabled, you can use capture groups in your replacement string:- Numbered Groups
- Named Groups
$1, $2, etc. to reference captured groups:Search: (\w+): (\w+)Replace:
$2: $1Result:
name: value → value: nameRegex Examples
Swap function parameters
Swap function parameters
function (\w+)\((\w+), (\w+)\)Replace:
function $1($3, $2)Swaps the order of two function parameters.Convert camelCase to snake_case
Convert camelCase to snake_case
([a-z])([A-Z])Replace:
$1_$2Then convert to lowercase separately.Add quotes around words
Add quotes around words
\b(\w+)\bReplace:
"$1"Wraps each word in double quotes.Extract domain from URLs
Extract domain from URLs
https?://([^/]+)/.*Replace:
$1Extracts just the domain from full URLs.Interactive Query Replace
For precise control over which matches to replace, use query replace:Start query replace
Ctrl+Alt+R or use “Query Replace” from the command paletteEnter search and replacement
Decide for each match
y— Replace this matchn— Skip this match!— Replace all remaining matchesq— Quit query replace
Find Selection
Quickly find the next occurrence of the currently selected text:Select text
Find next
Alt+N or Ctrl+F3 to jump to the next occurrenceCreate multi-cursor (optional)
Ctrl+D to add a cursor at the next match for multi-cursor editingCtrl+D which adds a cursor at the next match — find selection just moves the cursor without creating additional cursors.Project-Wide Search
Search across all files in your project using git grep:Open project search
Ctrl+P) and search for “Search and Replace in Project”Enter search term
View results
Navigate to match
git grep and only searches files tracked by git. Untracked and ignored files are excluded.Git Grep Features
Fresh’s project search leverages git grep for fast, efficient searching:Fast
Respects .gitignore
.gitignore, node_modules, build artifacts, etc.Regex Support
Context Aware
Search in Selection
Limit your search to just the selected text:Select region
Open search
Ctrl+F to open searchSearch
Search Tips and Tricks
Use multi-cursor with find next
Use multi-cursor with find next
Ctrl+D (add cursor at next match) to create multiple cursors at each occurrence. This gives you visual feedback and more control — you can edit each occurrence differently if needed, and undo is a single operation.Combine whole word with regex
Combine whole word with regex
\d+ with whole word enabled matches standalone numbers but not digits within words.Test regex before replacing
Test regex before replacing
Ctrl+F with regex mode first to verify your pattern matches what you expect. Then use Ctrl+R to replace.Use query replace for risky changes
Use query replace for risky changes
Ctrl+Alt+R (query replace) to review each match before replacing.Search for empty lines
Search for empty lines
^$ to find empty lines. Replace with nothing to remove them.