Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Smart Path RefactorNew to Visual Studio Code? Get it now.
Smart Path Refactor

Smart Path Refactor

Leonardo Silva

|
4 installs
| (0) | Free
Automatically updates file paths when folders or files are renamed
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Smart Path Refactor 🚀

Smart Path Refactor icon

A lightweight VS Code extension that keeps project references updated when you rename or move files and folders.

Developed by Leonardo Aleixo • GitHub


✨ Overview

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

  1. Open your project in VS Code.
  2. Rename or move a file or folder from the Explorer.
  3. The extension automatically updates the affected references across the project.

🛠️ Tech Stack

  • TypeScript
  • VS Code Extension API
  • Regular Expressions (Regex) for safe path matching

📦 Marketplace Metadata

  • Title: Smart Path Refactor
  • Author: Leonardo Aleixo
  • Publisher: leonardoaleixo
  • License: MIT
  • Repository: GitHub Repository
  • Issues: Report a bug

Developed with 💻 by Leonardo Aleixo.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft