Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Rename / ReplaceNew to Visual Studio Code? Get it now.
Rename / Replace

Rename / Replace

wassim-k

|
2,553 installs
| (5) | Free
Rename files & folders recursively and replace their content while preserving the original casing.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Rename / Replace

Rename files & folders recursively and replace their content while preserving the original casing.

Features

  • Replace action for refactoring existing code with ease.
  • Duplicate action for starting a new feature that has a similar folder structure to an existing feature.
  • Supports the following letter casings:
    • camel
    • pascal
    • constant
    • header
    • kebab
    • sentence
    • snake
    • title
    • upper
    • lower

Configuration

exclude

List of folders or files to exclude.

default:

"rename-replace.exclude": [
  "node_modules",
  ".git",
  ".cache"
]

Demo

Demo

CLI

For the same functionality outside of VSCode, you can use the CLI tool.

npx rename-replace -h

⚠️ There are instances when VSCode may lock files, leading to the extension timing out with an error after several attempts. If you encounter this issue, it's recommended to close VSCode and use the CLI tool directly from the command line as an alternative solution.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft