An extension that allows you to quickly bulk-rename files and folders.
Installation
Open VS Code.
Go to the Extensions view by clicking on the square icon on the sidebar or pressing Ctrl+Shift+X on Windows or Cmd+Shift+X on MacOS.
Search for "Bulk Rename".
Install and reload VS Code.
This extension is activated by default. Disable the extension to deactivate it.
Disclaimer
Bulk-renaming files can break your project if you're not careful. Be sure to try this extension with a dummy project before you use it with an important project. Always save your project before bulk-renaming files or folders in case you break something or the extension behaves in an unexpected way.
Instructions
Open a workspace in Visual Studio Code.
Save your project.
Right-click a folder in the Explorer view.
Select 🔸 Create .BULK_RENAME.txt from the context menu.
A file named .BULK_RENAME.txt will be created in that folder.
Open .BULK_RENAME.txt, and rename the files or folders as needed (Tip: Press Ctrl+F (Windows/Linux) or Cmd+F (MacOS) to search if there are too many).
Save the file (Tip: Enable auto-save in Visual Studio Code).
The files and folders will be renamed accordingly and .BULK_RENAME.txt will update.
Configuration
bulk-rename.ignore (array of strings) — basenames to skip when building the rename list. Defaults to .git, .dart_tool, .vscode, build, coverage, node_modules, out. The .BULK_RENAME.txt file itself is always skipped regardless of this setting.