Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>AutoPathNew to Visual Studio Code? Get it now.
AutoPath

AutoPath

Preview

Sarab Rafiuqe

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

🪄 AutoPath – VS Code Extension

AutoPath is a VS Code extension that automatically updates file paths in your code whenever you rename or move files inside the VS Code Explorer.
No more broken imports or missing data file errors — AutoPath keeps your code perfectly in sync, instantly.


✨ Features

  • 🔁 Updates paths when you rename or move files/folders in VS Code Explorer
  • 🎯 Preserves your original path style (r"", \\, /)
  • 💬 Shows a popup with old vs new paths for transparency
  • ⚙️ Works automatically — no setup or extra steps needed

⚠️ Limitations

AutoPath only works when files are renamed or moved using the VS Code Explorer.
(Changes made directly in Windows Explorer or terminal aren’t detected yet.)


🖥️ Supported Languages

  • Python (.py)
  • Jupyter Notebooks (.ipynb)
  • JavaScript / TypeScript (.js, .ts)
  • Java (.java)
  • C / C++ (.c, .cpp)
  • R (.r)

📦 How to Use

  1. Install AutoPath from the VS Code Marketplace
  2. In the Explorer, rename or move any file in your project
  3. AutoPath will automatically detect the change and update all path references in your code

📌 Example

Move a CSV file in the Explorer:

```python

Before

df = pd.read_csv("data/train.csv")

After (file moved to dataset/)

df = pd.read_csv("dataset/train.csv") ```

AutoPath also works when you rename the file:

```python

Before

df = pd.read_csv("dataset/train.csv")

After (file renamed → housing.csv)

df = pd.read_csv("dataset/housing.csv")

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