VS Code Search and Regex/Replace in files

Search and replace across the workspace.

Section: Core Search

Replace in files

text
text
Windows/Linux: Ctrl+Shift+H
macOS: Cmd+Shift+H

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Core Search
Replace in current file
Search and replace in the active editor.
OpenIn sheettextsame section
Toggle match case
Case-sensitive search.
OpenIn sheettextsame section
Toggle whole word
Whole-word search only.
OpenIn sheettextsame section
Toggle regex mode
Enable regular expression matching.
OpenIn sheettextsame section
Replace repeated spaces with one
Normalize spacing.
OpenIn sheetregex1 tag match
Collapse repeated blank lines
Reduce multiple blank lines to one.
OpenIn sheetregex1 tag match