Find and replace text across multiple files at once, but only in the files you choose.
VS Code's built-in search can replace across your whole project, which is sometimes too much. Scope-Replace lets you pick exactly which files to change, so nothing else gets touched by accident.
- Find and replace across many files in one go
- Select the exact files you want to include
- Preview matches before replacing
- Saves time on repetitive edits
- Works with any file type
- Open VS Code.
- Go to the Extensions view (
Ctrl+Shift+X, orCmd+Shift+Xon Mac). - Search for Scope-Replace.
- Click Install.
- Download the
.vsixfile from the Releases page. - In VS Code, open the Extensions view.
- Click the
...menu at the top right and choose Install from VSIX... - Select the downloaded file.
- Open the Command Palette (
Ctrl+Shift+P, orCmd+Shift+Pon Mac). - Run Scope-Replace: Open.
- Type the text you want to find.
- Type the text you want to replace it with.
- Select the files you want to include.
- Review the matches.
- Click Replace to apply the changes.
| Command | What it does |
|---|---|
Scope-Replace: Open |
Opens the find and replace panel |
| Setting | Description | Default |
|---|---|---|
scopeReplace.caseSensitive |
Match uppercase and lowercase exactly | false |
- Always preview matches before replacing.
- Use version control (like Git) so you can easily undo changes if needed.
- Start with a small set of files to test your search first.
Want to run the extension on your own computer?
git clone https://github.com/your-username/Scope-Replace.git
cd Scope-Replacenpm install- Open the project in VS Code.
- Press
F5. A new VS Code window will open with the extension loaded.
npm install -g @vscode/vsce
vsce packageThis creates a .vsix file you can install or share.
├── src/
│ └── extension.ts # Main extension code
├── package.json # Extension info, commands, and settings
└── README.md
Ideas, bug reports, and pull requests are welcome.
- Fork this repository
- Create a new branch (
git checkout -b my-feature) - Make your changes and commit them
- Push to your branch
- Open a Pull Request
- None yet. Please open an issue if you find one.
- Regex support
- Save and reuse search patterns
- Folder-level selection
- Undo all replacements
This project is licensed under the MIT License. See the LICENSE file for details.
Made by Mudassar Sindoli(https://github.com/mudassarsindoli)
If this extension saves you time, please give it a ⭐ on GitHub.