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

| (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 Beautify: Format HTML in PHP, Blade & Twig: Format HTML inside PHP, Blade, Twig, Jinja, Handlebars, ERB and Liquid templates without breaking the template tags. (Open VSX)
  • Nifty C# Templates: New Class, Record & Namespace: New C# class, interface, record, enum, test and controller files with the right namespace, plus namespace syncing. (Open VSX)
  • Nifty Data Viewer: CSV & Parquet Viewer with SQL: Open CSV, Parquet and JSON files as a fast table and query them with SQL, powered by DuckDB. Sort, page through millions of rows, and export to CSV, Parquet or JSON. (Open VSX)
  • Nifty Git Graph: Git History & Branch Graph: See your git history as a graph: branches, merges and tags, commit details and diffs, and checkout, merge, rebase, cherry-pick and more from a right-click. No sign-in. (Open VSX)

See all 21 Nifty tools at https://getnifty.dev

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