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

Continue with VS Code Shortcuts

Save the full cheat sheet or work through every related task.

More VS Code tasks

Back to the full VS Code Shortcuts cheat sheet