Smart Path Refactor automatically updates references in text-based files such as HTML, CSS, Markdown, JSON, and other project assets whenever a file or folder is renamed or moved in the Explorer.
This helps keep links, images, stylesheet references, and static dependencies valid without manual edits.
🎥 How It Works
📹 Demo Videos
Main demonstration
Additional walkthrough
✨ Features
Universal refactoring: Updates textual references in files not natively handled by VS Code such as HTML, CSS, Markdown, JSON, and more.
Batch processing: Scans and updates all affected files efficiently in a single operation.
False positive protection: Uses validation rules and boundary-aware patterns to avoid editing unrelated text, variables, or comments.
Folder exclusion support: Ignores heavy directories such as node_modules, .git, and vendor to preserve editor performance.
Explorer integration: Works directly when renaming or moving items from the VS Code sidebar.
🚀 Usage
Open your project in VS Code.
Rename or move a file or folder from the Explorer.
The extension automatically updates the affected references across the project.
🛠️ Tech Stack
TypeScript
VS Code Extension API
Regular Expressions (Regex) for safe path matching