Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Nifty Replace: Find & Replace Across FilesNew to Visual Studio Code? Get it now.
Nifty Replace: Find & Replace Across Files

Nifty Replace: Find & Replace Across Files

Nifty

|
40 installs
| (0) | Free
Find and replace across files with a preview of every change, regex groups and case transforms, case-preserving replace, and search results you can edit and apply back.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Nifty Replace

Find and replace across files with a preview of every change, regex groups and case transforms, case-preserving replace, and search results you can edit and apply back.

Maintained. No sign-in. No telemetry. Works in VS Code, Cursor, Windsurf, VSCodium and other editors that use Open VSX.

Features

Replacing customer with client across src/ through three prompts, reviewing the case-preserving changes in the Refactor Preview and applying them

Replacing customer with client across src/, case preserved, in the Refactor Preview

Every console.log line in one editable list, rewritten with find and replace before saving back

  • Replace across files, safely. Replace in Files (with Preview) (Ctrl+Alt+Shift+H, or the button on the Search view) lists every change in VS Code's Refactor Preview. Nothing changes until you tick the files (or single changes) you want and press Apply, and you can undo it all in one step if you change your mind.
  • Replacements that do what you mean.
    • $1, $& and named groups: search (?<first>\w+) (?<last>\w+), replace $<last>, $<first>
    • case changes: \U$1\E (upper), \L$1\E (lower), \u$1 (capitalise), \l$1
    • Preserve Case: replacing user with account turns User into Account and USER into ACCOUNT
  • Edit search results like a file. Search into an Editable List opens every matching line in an editor, prefixed with file:line:. Use multi-cursor, find and replace, or plain typing to change them, then press Ctrl+S to write every changed line back to its file. Lines that changed on disk since the search are skipped, never overwritten. F12 or Ctrl+click opens a line in its file.
  • Respects your excludes: node_modules, .git, search.exclude and files.exclude are left out, binary and huge files are skipped, and unsaved changes in open editors are searched.
  • Keyboard friendly: toggle regex, match case, whole word and preserve case with the buttons in the input box; your choices are remembered.
  • Works in the browser on vscode.dev and github.dev.

Commands

Command What it does
Nifty Replace: Replace in Files (with Preview)… Search, replace and preview every change (Ctrl+Alt+Shift+H)
Nifty Replace: Search into an Editable List… Open matching lines in an editable document
Nifty Replace: Apply Edits to Files Write edited lines back (Ctrl+S in the list)

Settings

Setting Default What it does
nifty.replace.saveAfterReplace false Save files after replacing
nifty.replace.previewEdits false Preview edits from the editable list before applying
nifty.replace.maxFiles 20000 Most files to search
nifty.replace.maxResults 5000 Most lines in an editable list
nifty.replace.maxFileSizeKB 2048 Skip files larger than this

Install

  • VS Code: search for "Nifty Replace" in the Extensions view, or install from the Visual Studio Marketplace.
  • Cursor, Windsurf, VSCodium, Kiro, Antigravity: install from Open VSX.

Privacy

This extension collects no telemetry and needs no account.

More Nifty tools

  • Nifty Docs: Dash, Zeal & DevDocs Lookup: Look up the word under the cursor in Dash, Zeal or DevDocs, with docsets picked from your language and frameworks. (Open VSX)
  • Nifty Node Search: Search Files in node_modules: Fuzzy-find and open files inside node_modules, jump to a package's README, and see installed versions. (Open VSX)
  • Nifty Search Scopes: Monorepo Search Filters: Named search scopes for the Search view, with a scope per package in npm, pnpm, yarn, lerna, Cargo and Go monorepos detected automatically. (Open VSX)
  • Nifty .NET Explorer: Solution & Test Explorer: A solution explorer and test explorer for .NET in VS Code, Cursor, Windsurf and VSCodium: projects, references and files from .sln/.slnx, and xUnit, NUnit and MSTest tests in the Testing view. (Open VSX)
  • Nifty .NET Pack: 5 Nifty extensions for C# and .NET development: .NET Explorer, NuGet, C# Templates, XAML, C# Scratchpad. (Open VSX)
  • Nifty Actions: Workflow Checks, SHA Pinning & act: GitHub Actions workflows without sign-in: completion and go to definition for local and reusable actions, actionlint checks, pin actions to commit SHAs, and run jobs locally with act. (Open VSX)

See all 100+ Nifty extensions and web tools at https://getnifty.dev

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft