Replace in VS Code

From the VS Code Shortcuts cheat sheet · Search & Replace · verified Jul 2026

Replace

Search and replace in current file

text
Ctrl+H (Windows)
⌥+⌘+F (Mac)
💡 Find and replace with preview
⚡ Replace all or individual matches
🔍 Supports regex patterns
search

More VS Code tasks

Back to the full VS Code Shortcuts cheat sheet