An smart find-and-replace extension. The input must be space-separated words in single and plural form to find + the words to replace them with. The extension will scan the currently opened file and replace the term in all found cases (snake case, kebab case etc.).
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Smart Replace is a Visual Studio Code extension to help with finding and replacing multi-word terms across multiple files in your work directory.
Features
In the Command Palette, you will find a "Smart Replace: Find & Replace Option". It will prompt you for several inputs:
Single form of the term you want to replace (e.g. "article category", "api request interceptor")
Plural form of the term you want to replace (e.g. "article categories", "api request interceptors")
Single form of the term you want to replace with
Plural form of the term you want to replace with
Glob pattern to include files, relative to the working directory (e.g. 'src/**/*.{js,ts}'). Leaving this empty will only process the current file you are working on.
Glob pattern to exclude files, relative to the working directory. Leaving this empty will only ignore files in the root directory's .gitignore file